Condition Coverage

blib/lib/Test2/Tools/Mock.pm
Criterion Covered Total %
condition 41 58 70.6


and 3 conditions

line !l l&&!r l&&r condition
38 0 0 44 $code and ref $code eq "CODE"
57 20 15 20 @$set and not defined $set->[-1]
78 24 2 1 ref $proto and not &blessed($proto)
82 0 0 1 $arg1 and ref $arg1
0 0 1 $arg1 and ref $arg1 and &reftype($arg1) eq "CODE"
99 1 27 1 @_ and not defined $_[0]
113 2 0 6 $control and &blessed($control)
2 0 6 $control and &blessed($control) and $control->isa("Test2::Mock")
116 2 0 4 $sub and ref $sub
2 0 4 $sub and ref $sub and &reftype($sub) eq "CODE"
142 1 0 5 $proto and ref $proto
1 1 4 $proto and ref $proto and &reftype($proto) ne "CODE"
152 5 0 1 @_ == 1 and &reftype($_[0]) eq "CODE"
216 46 0 1 @args == 1 and ref $args[0]
46 0 1 @args == 1 and ref $args[0] and &reftype($args[0]) eq "CODE"

or 2 conditions

line l !l condition
54 35 26 $MOCKS{$class} || (return)
229 3 44 $MOCKS{$class} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
51 12 49 0 &blessed($proto) || $proto
133 0 2 3 $meth =~ /^_/ or not $build->can($meth)
207 2 31 0 &blessed($proto) || $proto