Branch Coverage

lib/Test/Chai/Core/Assertions/Keys.pm
Criterion Covered Total %
branch 30 32 93.7


line true false branch
24 15 32 if (ref $_[0] eq 'ARRAY') { }
11 21 elsif (ref $_[0] eq 'HASH') { }
25 1 14 if @_ > 1
30 1 10 if @_ > 1
38 4 41 unless @keys
46 33 0 unless $any or $all
49 8 33 if ($any)
55 33 8 if ($all)
58 10 14 unless (flag($self, 'negate') or flag($self, 'contains'))
59 2 8 unless @keys == @actual
64 24 17 if ($len > 1) { }
67 21 3 if $all
68 3 21 if $any
72 17 0 defined $keys[0] ? :
76 24 17 $len > 1 ? :
79 23 18 flag($self, 'contains') ? :