David Cantrell
2012-10-25 15:05:05 UTC
[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 :-)
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!
David Cantrell | A machine for turning tea into grumpiness
All praise the Sun God
For He is a Fun God
Ra Ra Ra!