| line |
true |
false |
branch |
|
26
|
3 |
5 |
unless defined $path and length $path |
|
27
|
0 |
5 |
unless defined $base and length $base |
|
28
|
1 |
4 |
unless is_abs_path($base) |
|
34
|
3 |
11 |
unless defined $path and length $path |
|
35
|
7 |
4 |
$path =~ m[\A/] ? : |
|
40
|
3 |
2 |
unless defined $path and length $path |
|
41
|
1 |
1 |
$path =~ m[\A/] ? : |
|
51
|
8 |
4 |
if $elem eq '.' and @elems || @elems0 || $is_abs |
|
52
|
6 |
7 |
if ($elem eq '..' and @elems > 1 && $elems[-1] ne '..' || @elems == 1 && $elems[-1] ne '..' && $elems[-1] ne '.' && @elems0 || $is_abs) |
|
58
|
13 |
25 |
$is_abs ? : |
|
63
|
6 |
48 |
unless defined $path and length $path |
|
68
|
6 |
21 |
unless @_ > 1 |
|
72
|
0 |
44 |
unless defined $_ and length $_ |
|
73
|
21 |
23 |
unless $i++ |
|
74
|
6 |
17 |
if (m[\A/]) { } |
|
77
|
5 |
12 |
$res =~ m[/\z] ? : |