Branch Coverage

blib/lib/Test/Mini/Assertions.pm
Criterion Covered Total %
branch 72 82 87.8


line true false branch
66 238 56 if /^(assert|refute|skip$|flunk$)/
89 29 244 if ref $msg eq 'CODE'
93 272 1 if $test
114 0 6 if $msg and ref $block ne 'CODE'
125 0 6 if $msg and ref $block ne 'CODE'
151 10 21 if (ref $collection eq 'ARRAY') { }
6 15 elsif (ref $collection eq 'HASH') { }
6 9 elsif (ref $collection) { }
152 20 0 defined $obj ? :
172 10 16 if (ref $collection eq 'ARRAY') { }
6 10 elsif (ref $collection eq 'HASH') { }
6 4 elsif (ref $collection) { }
173 20 0 defined $obj ? :
202 3 2 unless defined $error
219 2 8 if (ref $collection eq 'ARRAY') { }
2 6 elsif (ref $collection eq 'HASH') { }
4 2 elsif (ref $collection) { }
238 2 8 if (ref $collection eq 'ARRAY') { }
2 6 elsif (ref $collection eq 'HASH') { }
4 2 elsif (ref $collection) { }
272 6 56 if ref $actual and ref $expected and &refaddr($actual) == &refaddr($expected)
274 8 1142 if (eval { do { $expected->can('equals') } }) { }
24 1118 elsif (ref $actual eq 'ARRAY' and ref $expected eq 'ARRAY') { }
10 1108 elsif (ref $actual eq 'HASH' and ref $expected eq 'HASH') { }
18 1090 elsif (ref $actual and ref $expected) { }
1038 52 elsif (&looks_like_number($actual) and &looks_like_number($expected)) { }
44 8 elsif (defined $actual and defined $expected) { }
319 6 54 if ref $actual and ref $unexpected and &refaddr($actual) == &refaddr($unexpected)
321 8 110 if (eval { do { $unexpected->can('equals') } }) { }
24 86 elsif (ref $actual eq 'ARRAY' and ref $unexpected eq 'ARRAY') { }
8 78 elsif (ref $actual eq 'HASH' and ref $unexpected eq 'HASH') { }
18 60 elsif (ref $actual and ref $unexpected) { }
28 32 elsif (&looks_like_number($actual) and &looks_like_number($unexpected)) { }
24 8 elsif (defined $actual and defined $unexpected) { }
357 0 11 unless defined $delta
367 0 5 unless defined $delta
377 1 7 unless defined $epsilon
390 1 1 unless defined $epsilon
458 1 0 unless defined $msg
459 0 1 if ref $msg eq 'CODE'
469 0 0 unless defined $msg