-----BEGIN PGP SIGNED MESSAGE----- MOIN,
On 28-Apr-02 Tatsuhiko Miyagawa carved into stone: > At Sun, 28 Apr 2002 01:06:18 -0700, > chromatic wrote: > >> I've written a module to make it easier to do very strict unit testing. >> It >> lets you fake an existing interface somewhat more easily. For example, >> if >> you're testing a web app, you can mock up CGI.pm instead of having to >> specify >> query information manually. > > Seems interesting. But I prefer a direct way to define Mock classes > manually in a test code like: Actually, I have a big project, which uses a lot of "inline" mock interfaces so that I can test a class without having to "use" all the "parent" classes/packages. I think that with Test::Mock I could shorten my testscripts. Having several pages of inline mock code at every test file looks untidy. Maybe I use it in the future ;) Cheers, Tels - -- perl -MDev::Bollocks -e'print Dev::Bollocks->rand(),"\n"' evangelistically brand transparent supply-chains http://bloodgate.com/perl My current Perl projects PGP key available on http://bloodgate.com/tels.asc or via email -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl. iQEVAwUBPMv3J3cLPEOTuEwVAQGWjwf/T07MyQ1i6rL0PLEyMA2F4j7x7xNVksNz rj6ZD1Zb+66P8Jx+nzz/0bZFe/qaeKF07GQqxGm6axB48N/Vt0Q7ErPRHjdHzCGy NkSWTcThQWTUrO0qDjZJR/Rk4bNw0xNdyqYwSqh2l26iqaOeuf5cy/wut3Xt/Dfx GiJbSt+jicKtTVYTF9WfJRlktn4Zj16V0EkWpQ4rLKtRMEctTs9W4kIoBk48WHHM gqwvJwlYBVh3JY8FoFmm94zlxRqz+C2Y1Crg/+b2A5vO6I+HmtroWaDzGt89+jYa /axVtynCi7ll1W/1WCUMNR2S3J9Yn69ZfEL7H2T1fCEuxoZXQ5lCeg== =lES1 -----END PGP SIGNATURE-----