blib/lib/Log/Report.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 37 | 70 | 52.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
83 | 12 | 2 | 2 | &use_errno($reason) and not defined $opts->{'errno'} |
140 | 0 | 1 | 1 | keys %{$$filter[1];} and not $filter->[1]{$d->name} |
180 | 15 | 0 | 0 | defined $has and $has ne $default_dispatcher |
234 | 0 | 4 | 0 | @_ == 1 && $_[0] eq 'ALL' |
244 | 4 | 0 | 0 | @disps > 1 and not wantarray |
4 | 0 | 0 | @disps > 1 and not wantarray and defined wantarray | |
305 | 10 | 1 | 6 | &blessed($err) && $err->isa('Log::Report::Exception') |
306 | 6 | 4 | 7 | not $is_exception and $err |
10 | 0 | 7 | not $is_exception and $err and not $disp->wasFatal | |
481 | 0 | 0 | 0 | $syntax ne 'REPORT' and $syntax ne 'LONG' |
534 | 0 | 226 | 0 | @_ == 1 and &blessed($_[0]) |
line | l | !l | condition |
---|---|---|---|
83 | 0 | 2 | $! + 0 || $? || 1 |
153 | 0 | 0 | $opts->{'errno'} || 0 |
155 | 3 | 4 | $opts->{'errno'} || 0 |
210 | 0 | 0 | shift() || 'undef' |
453 | 0 | 126 | ($_[0] && $_[0] =~ /^\+\d+$/ ? shift() : undef) || 0 |
468 | 0 | 0 | delete $opts{'mode'} || 0 |
480 | 20 | 106 | delete $opts{'syntax'} || 'SHORT' |
546 | 216 | 10 | (@_ % 2 ? shift() : &pkg2domain(scalar((caller)[0]))) || 'default' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
67 | 6 | 0 | 1 | $stop or $try->hides($reason) |
79 | 16 | 0 | 20 | @disp or $stop |
83 | 0 | 2 | 0 | $opts->{'errno'} ||= $! + 0 || $? || 1 |
94 | 0 | 0 | 0 | @disp or $stop |
104 | 3 | 13 | 0 | $opts->{'location'} ||= 'Log::Report::Dispatcher'->collectLocation |
156 | 2 | 5 | 0 | $exception || 'Log::Report::Exception'->new('report_opts', $opts, 'reason', $reason, 'message', $message) |
547 | 203 | 23 | 0 | $reporter->{'textdomains'}{$name} ||= 'Log::Report::Domain'->new('name', $name) |