Branch Coverage

blib/lib/Test/Mocha/Method.pm
Criterion Covered Total %
branch 42 46 91.3


line true false branch
58 359 332 unless $invocation->name eq $self->name
71 35 206 if (&Slurpy()->check($matcher)) { }
67 139 elsif (&Matcher()->check($matcher)) { }
76 15 20 if ($matcher->is_a_type_of(&ArrayRef())) { }
20 0 elsif ($matcher->is_a_type_of(&HashRef())) { }
80 12 8 unless scalar(@input) % 2 == 0
84 5 18 unless $matcher->check($value)
90 19 48 unless $matcher->check(shift @input)
94 43 96 unless _match(shift @input, $matcher)
99 8 245 if (@expected > 0 and &Slurpy()->check($expected[0]))
103 6 2 if ($matcher->is_a_type_of(&ArrayRef())) { }
2 0 elsif ($matcher->is_a_type_of(&HashRef())) { }
107 0 2 unless scalar(@input) % 2 == 0
111 0 8 unless $matcher->check($value)
126 23 138 if ref $x ne ref $y
129 5 133 if (&blessed($x) or ref $x eq 'CODE')
135 7 126 if (ref $x eq 'ARRAY')
136 1 6 if $#{$x;} != $#{$y;}
140 2 15 unless _match($x->[$_], $y->[$_])
145 4 122 if (ref $x eq 'HASH')
147 1 3 unless $x ~~ $y
151 1 4 unless _match($x->{$_}, $y->{$_})
158 4 118 if &looks_like_number($x) xor &looks_like_number($y)