Condition Coverage

blib/lib/Assert/Refute/Report.pm
Criterion Covered Total %
condition 42 56 75.0


and 3 conditions

line !l l&&!r l&&r condition
374 23 4 4 &blessed($sub) and $sub->isa('Assert::Refute::Contract')
23 0 4 &blessed($sub) and $sub->isa('Assert::Refute::Report')
489 0 1 1 $n =~ /^[1-9]\d*$/ and $n <= $self->{'count'}
532 0 0 39 defined $n and $n =~ /^(?:[0-9]+|-1)$/
548 18 6 5 $reason and $reason ne 1
814 77 16 54 $reason and $reason ne 1
829 9 5 57 not defined $self->{'plan_tests'} and $self->{'done'}

or 2 conditions

line l !l condition
230 2 132 $self->{'messages'}{'-1'} ||= []
269 6 64 $self->{'context'} ||= {}
414 5 35 $self->{'done'} || 0
449 1 1 $self->{'fail_count'} || 0
487 1 0 $self->{'fail'}{$n} || 0
579 8 53 $self->{'has_error'} || ''
614 2 65 $verbosity ||= 0
769 0 12 $self->{'messages'}{$self->{'count'}} ||= []
878 0 1 ref $parent || 'scalar'
921 19 0 $mess ||= 'Something terrible happened'

or 3 conditions

line l !l&&r !l&&!r condition
241 0 3 0 $self->{'has_error'} ||= $bad_plan
369 0 1 31 not $msg or ref $msg
391 1 0 0 $@ || Carp::shortmess('Subcontract execution interrupted')
427 33 6 41 $self->{'fail_count'} || $self->{'has_error'}
769 79 12 0 $self->{'log'} ||= ($self->{'messages'}{$self->{'count'}} ||= [])