Re: C/C++ White-Box Unit Testing and Test::More

2004-06-26 Thread Tony Bowden
On Fri, Jun 25, 2004 at 01:07:36PM -0400, Andrew Pimlott wrote: > You are also circumventing the isolation part of the xUnit model, > because you don't get setup/teardown for each test data. Possibly you > don't care about that in this case, but if you did, you wouldn't be able > to do the above,

Re: C/C++ White-Box Unit Testing and Test::More

2004-06-26 Thread Fergal Daly
On Fri, Jun 25, 2004 at 10:13:52PM +0100, Adrian Howard wrote: > On 25 Jun 2004, at 16:51, Fergal Daly wrote: > [snip] > >NB: I haven't used xUnit style testing so I could be completely off > >the mark > >but some (not all) of these benefits seem to be available in T::M land. > > Just so I'm clea

Re: C/C++ White-Box Unit Testing and Test::More

2004-06-26 Thread Fergal Daly
On Fri, Jun 25, 2004 at 02:18:49PM -0500, Andy Lester wrote: > On Fri, Jun 25, 2004 at 04:51:29PM +0100, Fergal Daly ([EMAIL PROTECTED]) wrote: > > > * I never have to type repetitive tests like > > > > > > isa_ok Foo->new(), 'Foo' > > > > > > again because it's handled by a base class that all

Re: Devel::Cover bug

2004-06-26 Thread Paul Johnson
On Thu, Jun 24, 2004 at 12:45:26PM -0400, Vsevolod (Simon) Ilyushchenko wrote: > Hi, Hello, > I've run into "Can't call method "add_statement" on an undefined value" > running Devel::Cover. Apologies if this was reported before, but the > list archive is not searchable. I am using perl 5.8.4 a

Re: Devel::Cover and nested subroutines

2004-06-26 Thread Paul Johnson
On Fri, Jun 25, 2004 at 11:07:06AM -0400, Geoffrey Young wrote: > hi paul :) > > I recently discovered an issue with nested subroutines while using > Devel::Cover with Parse::Yapp. the basic issue is that some subroutines are > not discovered by Devel::Cover and thus no metrics are generated. >

Re: Devel::Cover bug

2004-06-26 Thread Vsevolod (Simon) Ilyushchenko
Absolutely correct. I was able to reduce the code to: require B::Deparse; B::Deparse->new->coderef2text(sub {}) The problem occurs because Devel::Cover overrides some of B::Deparse's subs, but when you go calling them in a program it gets upset. The solution is to only override the subs f