blib/lib/Error.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 16 | 28 | 57.1 |
line | l | !l | condition | |
---|---|---|---|---|
348 | 5 | 11 | 0 | do { $err->isa($pkg) if &Scalar::Util::blessed($err) } && do { $code = $$catch[$i + 1]; while (1) { my $more = 0; local($Error::THROWN, $@); my $ok = eval { do { $@ = $err; if ($wantarray) { @{$result;} = &$code($err, \$more); } elsif (defined $wantarray) { @{$result;} = (); $result->[0] = &$code($err, \$more); } else { &$code($err, \$more); }; 1 } }; if ($ok) { next CATCHLOOP if $more; undef $err; } else { $err = $@ || $Error::THROWN; $err = &$Error::ObjectifyCallback({'text', $err}) unless ref $err; }; last CATCH; } } |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
484 | 1 | 0 | 11 | &Scalar::Util::blessed($err) and $err->can('throw') |
535 | 0 | 0 | 1 | @array == 1 and ref $array[0] |
602 | 3 | 0 | 1 | ref $e and $e->isa('Error') |
line | l | !l | condition |
---|---|---|---|
233 | 6 | 10 | shift() || {} |
234 | 3 | 13 | $clauses->{'catch'} ||= [] |
529 | 0 | 1 | shift() || {} |
530 | 0 | 1 | $clauses->{'catch'} ||= [] |
556 | 0 | 10 | shift() || {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
427 | 2 | 0 | 0 | $@ || $Error::THROWN |
470 | 23 | 0 | 0 | $@ || $Error::THROWN |