Branch Coverage

blib/lib/Test/Mocha/Spy.pm
Criterion Covered Total %
branch 16 18 88.8


line true false branch
52 1 7 unless &Scalar::Util::blessed($object)
84 61 74 if ($self->__CaptureMode)
85 3 58 if (not $self->__object->can($method_name) and $method_name ne 'ref')
106 41 33 if (my $stub = $self->__find_stub($method_call))
112 1 32 unless $self->__object->can($method_name)
126 2 5 if $self->SUPER::isa($class)
138 0 5 if $role eq 'Test::Mocha::Spy'
140 0 5 unless ref $self
151 17 5 if $method_name eq 'CARP_TRACE'