Branch Coverage

lib/Test/Chai/Util/Property.pm
Criterion Covered Total %
branch 20 20 100.0


line true false branch
15 8 67 unless defined $obj
17 16 51 if (ref $obj eq 'ARRAY') { }
41 10 elsif (ref $obj eq 'HASH' or &blessed($obj)) { }
2 8 elsif (&looks_like_number($name)) { }
5 3 elsif ($name eq 'length' and defined $obj and not ref $obj) { }
18 1 15 unless &looks_like_number($name)
19 9 6 if 0 <= $name and $name < @$obj
24 2 39 unless defined $name
25 32 7 if &any(sub { $_ eq $name; } , keys %$obj)
30 1 1 if 0 <= $name and $name < length $obj