RFC: Devel::Mockable and Devel::Mock::Generic::InterfaceTester

David Cantrell <[email protected]>
Newsgroups gmane.comp.lang.perl.quality-assurance
Message-ID <[email protected]>
[CCing chromatic in case he's not on perl-qa; my apologies if you get
two copies]

I'm liberating some code that we use at work.  A first cut at CPAN-
ising it is here (yes, I know it has no tests yet):
  https://github.com/DrHyde/perl-Devel-Mockable

What do people think?  The aim is to:
  * make it easy to make your code's interfaces to other code
    mockable;
  * test that your code calls other code correctly, without
    all the overhead of actually calling that other code

I don't think it's really doing the same job as Test::MockObject.
That's more for mocking things that might feed data *into* your code,
whereas mine is aimed more at testing how you call those other things in
the first place.  Also I think that my code's interface is nicer :-)

-- 
David Cantrell | A machine for turning tea into grumpiness

          All praise the Sun God
          For He is a Fun God
          Ra Ra Ra!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.