-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 26 Sep 2007, at 22:51, Greg Sabino Mullane wrote:
On Wed, 2007-09-26 at 20:16 +0100, Andy Armstrong wrote:
I'm guessing it wouldn't work well for heavily data driven tests? It
seems to work by counting the calls to test functions - is that
right?
That's a big part of it, yes, as well as accounting for subroutines
and
other loops and codepaths. Not entirely sure what you mean by the
first
question though - got an example?
my @tests = (
{ name => 'test 1', foo => 'bar' },
{ name => 'test 2', foo => 'bok' },
);
for my $test ( @tests ) {
# setup and then
is $wok->spindle, $test->{foo}, "yup";
}
Does it count that as two or one?
- --
Andy Armstrong, hexten.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
iD8DBQFG+vegwoknRJZQnCERAhsdAKDS1cUprtU8/cHMHB062SKzkba44ACg35C/
drmfrW4EWBl+7lrevJM71cY=
=UDAR
-----END PGP SIGNATURE-----