Branch Coverage: blib/lib/Test/Mocha/Method.pm

# Branch Coverage

File: | blib/lib/Test/Mocha/Method.pm
Coverage: | 91.3%

line | % | coverage | branch
--- | --- | --- | ---
58 | 100 | T | F | unless $invocation->name eq $self->name
71 | 100 | T | F | if (Slurpy->check($matcher)) { }
| 100 | T | F | elsif (Matcher->check($matcher)) { }
76 | 100 | T | F | if ($matcher->is_a_type_of(ArrayRef())) { }
| 50 | T | F | elsif ($matcher->is_a_type_of(HashRef())) { }
80 | 100 | T | F | unless scalar(@input) % 2 == 0
84 | 100 | T | F | unless $matcher->check($value)
90 | 100 | T | F | unless $matcher->check(shift @input)
94 | 100 | T | F | unless _match(shift @input, $matcher)
99 | 100 | T | F | if (@expected > 0 and Slurpy->check($expected[0]))
103 | 100 | T | F | if ($matcher->is_a_type_of(ArrayRef())) { }
| 50 | T | F | elsif ($matcher->is_a_type_of(HashRef())) { }
107 | 50 | T | F | unless scalar(@input) % 2 == 0
111 | 50 | T | F | unless $matcher->check($value)
126 | 100 | T | F | if ref $x ne ref $y
129 | 100 | T | F | if (blessed $x or ref $x eq 'CODE')
135 | 100 | T | F | if (ref $x eq 'ARRAY')
136 | 100 | T | F | if $#{$x;} != $#{$y;}
140 | 100 | T | F | unless _match($$x[$_], $$y[$_])
145 | 100 | T | F | if (ref $x eq 'HASH')
147 | 100 | T | F | unless $x ~~ $y
151 | 100 | T | F | unless _match($$x{$_}, $$y{$_})
158 | 100 | T | F | if looks_like_number $x xor looks_like_number $y