Branch Coverage

blib/lib/Test/Mocha.pm
Criterion Covered Total %
branch 30 30 100.0


line true false branch
64 2 64 if ref $_ ne 'CODE'
86 38 4 if @return_values == 1
88 2 2 if @return_values > 1
97 2 16 if &blessed($exception[0]) and $exception[0]->can('throw')
114 75 46 if (@_ > 0 and ref $_[0] eq 'CODE')
117 65 56 if (@_ > 0)
135 2 89 unless &Num()->check($n)
147 2 6 unless &Num()->check($n)
158 2 6 unless &Num()->check($n)
169 4 13 unless &NumRange()->check([$lower, $upper])
196 2 2 unless $mock->isa('Test::Mocha::SpyBase')
205 1 2 if @mocks == 0
208 1 1 if 0 < grep({not ref $_ && $_->isa('Test::Mocha::SpyBase');} @mocks)
236 1 2 if defined do { $caller_pkg . '::INC' }->{$module_file}
240 1 1 if defined *{$mocked_class . '::AUTOLOAD';}{'CODE'}