Condition Coverage

blib/lib/Path/Naive.pm
Criterion Covered Total %
condition 32 36 88.8


and 3 conditions

line !l l&&!r l&&r condition
28 2 1 5 defined $path and length $path
29 0 0 5 defined $base and length $base
36 2 1 26 defined $path and length $path
42 2 1 2 defined $path and length $path
51 0 0 44 defined $_ and length $_
74 98 20 3 $elem eq '.' and @elems || @elems0 || $is_abs
75 82 15 5 $elem eq '..' and @elems > 1 && $elems[-1] ne '..' || @elems == 1 && $elems[-1] ne '..' && $elems[-1] ne '.' && @elems0 || $is_abs
98 2 1 10 defined $path and length $path
99 1 1 8 defined $base and length $base
121 6 3 61 defined $path and length $path

or 3 conditions

line l !l&&r !l&&!r condition
74 17 2 4 @elems || @elems0 || $is_abs
75 5 1 7 @elems > 1 && $elems[-1] ne '..' || @elems == 1 && $elems[-1] ne '..' && $elems[-1] ne '.' && @elems0 || $is_abs