Condition Coverage

blib/lib/Mojo/Exception.pm
Criterion Covered Total %
condition 24 29 82.7


and 2 conditions

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

and 3 conditions

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 85 -r $file->[0] and open my $handle, "<", $file->[0]

or 2 conditions

line l !l condition
111 3 143 shift() // 1

or 3 conditions

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 961 2 0 decode("UTF-8", $line) // $line