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
83 11 2 2 &use_errno($reason) and not defined $opts->{'errno'}
132 0 1 1 keys %{$$filter[1];} and not $filter->[1]{$d->name}
172 13 0 0 defined $has and $has ne $default_dispatcher
226 0 4 0 @_ == 1 && $_[0] eq 'ALL'
236 4 0 0 @disps > 1 and not wantarray
4 0 0 @disps > 1 and not wantarray and defined wantarray
297 10 0 5 &blessed($err) && $err->isa('Log::Report::Exception')
298 5 4 6 not $is_exception and $err
9 0 6 not $is_exception and $err and not $disp->wasFatal
469 0 0 0 $syntax ne 'REPORT' and $syntax ne 'LONG'
522 0 208 0 @_ == 1 and &blessed($_[0])

or 2 conditions

line l !l condition
83 0 2 $! + 0 || $? || 1
145 0 0 $opts->{'errno'} || 0
147 3 3 $opts->{'errno'} || 0
202 0 0 shift() || 'undef'
441 0 110 ($_[0] && $_[0] =~ /^\+\d+$/ ? shift() : undef) || 0
456 0 0 delete $opts{'mode'} || 0
468 18 92 delete $opts{'syntax'} || 'SHORT'
534 198 10 (@_ % 2 ? shift() : &pkg2domain(scalar((caller)[0]))) || 'default'

or 3 conditions

line l !l&&r !l&&!r condition
67 5 0 1 $stop or $try->hides($reason)
79 15 0 18 @disp or $stop
83 0 2 0 $opts->{'errno'} ||= $! + 0 || $? || 1
94 0 0 0 @disp or $stop
104 3 12 0 $opts->{'location'} ||= 'Log::Report::Dispatcher'->collectLocation
148 2 4 0 $exception || 'Log::Report::Exception'->new('report_opts', $opts, 'reason', $reason, 'message', $message)
535 188 20 0 $reporter->{'textdomains'}{$name} ||= 'Log::Report::Domain'->new('name', $name)