Condition Coverage

blib/lib/Test/MockPackages/Mock.pm
Criterion Covered Total %
condition 31 33 93.9


and 3 conditions

line !l l&&!r l&&r condition
253 6 26 0 @returns == 1 and do { local $Test::MockPackages::Mock::EVAL_ERROR = undef; eval { do { $returns[0]->isa('Test::MockPackages::Returns') } } }
311 10 13 6 $n_expects == 1 and defined $self->{'_called'}
336 8 15 9 $n_returns == 1 and defined $self->{'_called'}
356 6 24 0 @returns == 1 and do { local $Test::MockPackages::Mock::EVAL_ERROR = undef; eval { do { $returns[0]->isa('Test::MockPackages::Returns') } } }
366 10 2 16 !wantarray && scalar @returns == 1
401 63 5 22 defined $called and $called >= 0
461 5 7 43 not $self->{'_corrupt'} and defined $expected_invocations

or 3 conditions

line l !l&&r !l&&!r condition
143 1 1 15 not &looks_like_number($called) or $called < -1
404 1 1 20 $n_expects > 1 or $n_returns > 1
413 1 1 8 $called or $n_expects
2 1 7 $called or $n_expects or $n_returns