Condition Coverage

blib/lib/Log/Report.pm
Criterion Covered Total %
condition 36 70 51.4


and 3 conditions

line !l l&&!r l&&r condition
84 11 2 2 &use_errno($reason) and not defined $opts->{'errno'}
133 0 1 1 keys %{$$filter[1];} and not $filter->[1]{$d->name}
173 13 0 0 defined $has and $has ne $default_dispatcher
227 0 4 0 @_ == 1 && $_[0] eq 'ALL'
237 4 0 0 @disps > 1 and not wantarray
4 0 0 @disps > 1 and not wantarray and defined wantarray
295 10 0 5 &blessed($err) && $err->isa('Log::Report::Exception')
296 5 4 6 not $is_exception and $err
9 0 6 not $is_exception and $err and not $disp->wasFatal
446 0 0 0 $syntax ne 'REPORT' and $syntax ne 'LONG'
499 0 208 0 @_ == 1 and &blessed($_[0])

or 2 conditions

line l !l condition
84 0 2 $! + 0 || $? || 1
146 0 0 $opts->{'errno'} || 0
148 3 3 $opts->{'errno'} || 0
203 0 0 shift() || 'undef'
418 0 110 ($_[0] && $_[0] =~ /^\+\d+$/ ? shift() : undef) || 0
433 0 0 delete $opts{'mode'} || 0
445 18 92 delete $opts{'syntax'} || 'SHORT'
511 198 10 (@_ % 2 ? shift() : &pkg2domain(scalar((caller)[0]))) || 'default'

or 3 conditions

line l !l&&r !l&&!r condition
68 5 0 1 $stop or $try->hides($reason)
80 15 0 18 @disp or $stop
84 0 2 0 $opts->{'errno'} ||= $! + 0 || $? || 1
95 0 0 0 @disp or $stop
105 3 12 0 $opts->{'location'} ||= 'Log::Report::Dispatcher'->collectLocation
149 2 4 0 $exception || 'Log::Report::Exception'->new('report_opts', $opts, 'reason', $reason, 'message', $message)
512 188 20 0 $reporter->{'textdomains'}{$name} ||= 'Log::Report::Domain'->new('name', $name)