Condition Coverage

blib/lib/Test/Mock/Class/Role/Object.pm
Criterion Covered Total %
condition 33 59 55.9


and 3 conditions

line !l l&&!r l&&r condition
236 0 0 16 defined $at and defined $method
291 0 0 1 defined $at and defined $method
336 0 0 4 defined $at and defined $method
354 0 0 1 defined $method and defined $count
372 0 0 5 defined $method and defined $count
389 0 0 3 defined $method and defined $count
584 31 5 3 defined $$rule{'maximum'} and $$rule{'call'} > $$rule{'maximum'}
589 27 8 1 defined $$rule{'count'} and $$rule{'call'} > $$rule{'count'}

or 2 conditions

line l !l condition
110 40 0 ref $expectation || ''
114 26 0 ref $$expectation{$method} || ''
119 6 1 $$rule{'call'} || 0
126 5 1 $$rule{'call'} || 0
463 48 0 ref $rules_for_method || ''
474 27 0 ref $$rule{'args'} || ''
483 9 26 ref $rule_arg || ''
546 42 0 ref $rules_for_method || ''
561 17 0 ref $$rule{'args'} || ''
570 6 22 ref $rule_arg || ''

or 3 conditions

line l !l&&r !l&&!r condition
110 0 0 40 not defined $expectation or (ref $expectation || '') ne 'HASH'
114 0 0 26 not defined $$expectation{$method} or (ref $$expectation{$method} || '') ne 'ARRAY'
463 91 0 48 not defined $rules_for_method or (ref $rules_for_method || '') ne 'ARRAY'
546 103 0 42 not defined $rules_for_method or (ref $rules_for_method || '') ne 'ARRAY'
604 0 6 0 $e ||= 'Exception::Fatal'->catch