Branch Coverage

blib/lib/Jasmine/Spy.pm
Criterion Covered Total %
branch 30 38 78.9


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