Branch Coverage

blib/lib/Class/Mock/Method/InterfaceTester.pm
Criterion Covered Total %
branch 30 30 100.0


line true false branch
40 2 24 unless (@tests)
49 2 22 if (ref $this_test->{'input'} eq 'CODE') { }
1 21 elsif (not Compare($this_test->{'input'}, \@params)) { }
50 1 1 unless ($this_test->{'input'}->(@params))
58 1 21 if ($this_test->{'invocant_class'} and $this_test->{'invocant_object'}) { }
5 16 elsif ($this_test->{'invocant_class'}) { }
9 7 elsif ($this_test->{'invocant_object'}) { }
61 1 4 if (ref $invocant) { }
2 2 elsif ($invocant ne $this_test->{'invocant_class'}) { }
67 1 8 unless (&blessed($invocant))
70 4 4 if (ref $this_test->{'invocant_object'} eq 'CODE') { }
2 2 elsif (&blessed($invocant) ne $this_test->{'invocant_object'}) { }
71 2 2 unless ($this_test->{'invocant_object'}->($invocant))
81 1 12 if (ref $output eq 'REF' and ref ${$output;} eq 'CODE') { }
102 1 7 if (@{$closure{'@tests'};})