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 23 0 @returns == 1 and do { local $Test::MockPackages::Mock::EVAL_ERROR = undef; eval { do { $returns[0]->isa('Test::MockPackages::Returns') } } }
307 10 11 6 $n_expects == 1 and defined $self->{'_called'}
332 8 12 9 $n_returns == 1 and defined $self->{'_called'}
352 6 21 0 @returns == 1 and do { local $Test::MockPackages::Mock::EVAL_ERROR = undef; eval { do { $returns[0]->isa('Test::MockPackages::Returns') } } }
362 10 2 14 !wantarray && scalar @returns == 1
392 57 5 22 defined $called and $called >= 0
452 5 7 40 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
395 1 1 20 $n_expects > 1 or $n_returns > 1
404 1 1 8 $called or $n_expects
2 1 7 $called or $n_expects or $n_returns