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
252 6 24 0 @returns == 1 and do { local $Test::MockPackages::Mock::EVAL_ERROR = undef; eval { do { $returns[0]->isa('Test::MockPackages::Returns') } } }
310 10 11 6 $n_expects == 1 and defined $self->{'_called'}
335 8 13 9 $n_returns == 1 and defined $self->{'_called'}
355 6 22 0 @returns == 1 and do { local $Test::MockPackages::Mock::EVAL_ERROR = undef; eval { do { $returns[0]->isa('Test::MockPackages::Returns') } } }
365 10 2 14 !wantarray && scalar @returns == 1
395 59 5 22 defined $called and $called >= 0
455 5 7 41 not $self->{'_corrupt'} and defined $expected_invocations

or 3 conditions

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