Condition Coverage

blib/lib/Assert/Refute/Report.pm
Criterion Covered Total %
condition 47 68 69.1


and 3 conditions

line !l l&&!r l&&r condition
106 0 0 10 @args == 1 and defined $args[0]
0 1 9 @args == 1 and defined $args[0] and $args[0] =~ /^\d+$/
110 0 0 1 @args == 1 and defined $args[0]
0 0 1 @args == 1 and defined $args[0] and length $args[0]
339 23 4 4 &blessed($sub) and $sub->isa('Assert::Refute::Contract')
23 0 4 &blessed($sub) and $sub->isa('Assert::Refute::Report')
454 0 1 1 $n =~ /^[1-9]\d*$/ and $n <= $self->{'count'}
497 0 0 39 defined $n and $n =~ /^(?:[0-9]+|-1)$/
513 18 6 5 $reason and $reason ne 1
763 77 16 52 $reason and $reason ne 1
778 8 5 56 not defined $self->{'plan_tests'} and $self->{'done'}

or 2 conditions

line l !l condition
217 2 129 $self->{'messages'}{'-1'} ||= []
256 6 62 $self->{'context'} ||= {}
379 5 35 $self->{'done'} || 0
414 1 1 $self->{'fail_count'} || 0
452 1 0 $self->{'fail'}{$n} || 0
544 8 53 $self->{'has_error'} || ''
579 2 63 $verbosity ||= 0
718 0 12 $self->{'messages'}{$self->{'count'}} ||= []
827 0 1 ref $parent || 'scalar'
850 17 0 $mess ||= 'Something terrible happened'

or 3 conditions

line l !l&&r !l&&!r condition
228 0 3 0 $self->{'has_error'} ||= $bad_plan
334 0 1 31 not $msg or ref $msg
356 1 0 0 $@ || Carp::shortmess('Subcontract execution interrupted')
392 29 6 41 $self->{'fail_count'} || $self->{'has_error'}
718 77 12 0 $self->{'log'} ||= ($self->{'messages'}{$self->{'count'}} ||= [])