blib/lib/Mojo/Exception.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 24 | 29 | 82.7 |
line | l | !l | condition |
---|---|---|---|
28 | 0 | 4 | $default = $cb and next |
32 | 0 | 5 | $handler = $cb and last CHECK |
33 | 0 | 3 | $handler = $cb and last CHECK |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
32 | 5 | 2 | 11 | $is_obj and not $is_re |
7 | 6 | 5 | $is_obj and not $is_re and $err->isa($c) | |
33 | 6 | 4 | 3 | $is_re and $str =~ /$c/u |
59 | 54 | 0 | 83 | -r $file->[0] and open my $handle, "<", $file->[0] |
line | l | !l | condition |
---|---|---|---|
111 | 3 | 141 | shift() // 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
20 | 1 | 1 | 11 | ref $spec ne "ARRAY" or @$spec % 2 |
38 | 8 | 2 | 1 | $handler ||= $default |
119 | 939 | 2 | 0 | decode("UTF-8", $line) // $line |