Condition Coverage

blib/lib/Test/Stream/Plugin/Mock.pm
Criterion Covered Total %
condition 48 67 71.6


and 3 conditions

line !l l&&!r l&&r condition
44 9 15 9 @$set and not defined $set->[-1]
65 22 2 16 ref $proto and not &blessed($proto)
69 0 0 1 $arg1 and ref $arg1
0 0 1 $arg1 and ref $arg1 and &reftype($arg1) eq 'CODE'
86 6 40 1 @_ and not defined $_[0]
100 2 0 6 $control and &blessed($control)
2 0 6 $control and &blessed($control) and $control->isa('Test::Stream::Mock')
103 2 0 4 $sub and ref $sub
2 0 4 $sub and ref $sub and &reftype($sub) eq 'CODE'
129 6 0 20 $proto and ref $proto
6 1 19 $proto and ref $proto and &reftype($proto) ne 'CODE'
139 25 0 1 @_ == 1 and &reftype($_[0]) eq 'CODE'
209 58 0 1 @args == 1 and ref $args[0]
58 0 1 @args == 1 and ref $args[0] and &reftype($args[0]) eq 'CODE'

or 2 conditions

line l !l condition
41 24 49 $MOCKS{$class} || (return)
222 3 56 $MOCKS{$class} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
38 12 61 0 &blessed($proto) || $proto
120 0 2 3 $meth =~ /^_/ or not $build->can($meth)
194 2 56 0 &blessed($proto) || $proto
202 28 1 29 has_workflow_vars() or $build
29 0 29 has_workflow_vars() or $build or $meta
1 29 0 has_workflow_vars() or $build or $meta or not $void
237 1 0 0 $build ||= $meta->unit