Branch Coverage

blib/lib/Jasmine/Spy.pm
Criterion Covered Total %
branch 31 38 81.5


line true false branch
182 2 42 if (exists $spies{$proto}) { }
195 22 1 if ($spy)
221 42 0 unless $proto->can('metaclass')
231 21 21 if (ref $proto)
244 1 21 if (ref $self->{'proto'}) { }
260 0 44 if $metaclass->is_immutable
278 52 1 if ($_[0] eq $self->{'proto'}) { }
1 0 elsif (ref $_[0] and not ref $self->{'proto'} and $_[0]->isa($self->{'class'})) { }
286 8 45 if (ref $self->{'responses'}{$method} eq 'CODE') { }
2 43 elsif (ref $self->{'responses'}{$method} eq 'Class::MOP::Method') { }
298 4 45 if (wantarray)
299 2 2 if (ref $value eq 'ARRAY') { }
2 0 elsif (ref $value eq 'HASH') { }
324 39 50 unless (exists $self->{'calls'}{$self->{'current_method'}})
335 1 1 if (ref $self->{'proto'}) { }
354 6 8 if (want('VOID'))
365 0 4 if (scalar @{$self->calls;})
380 2 0 if (want('VOID'))
393 0 2 if (scalar @{$self->__callsMatching(@_);})