lib/Wireguard/WGmeta/Utils.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 14 | 22 | 63.6 |
line | true | false | branch |
---|---|---|---|
37 | 0 | 37 | unless opendir DIR, $path |
41 | 157 | 148 | if ($file =~ /$pattern/u) |
79 | 10 | 120 | if (defined $path_is_fh) { } |
80 | 0 | 120 | unless open $fh, "<", $path |
82 | 0 | 120 | unless flock $fh, 1 |
91 | 120 | 10 | unless defined $path_is_fh |
129 | 0 | 10 | if (defined $path_is_fh) { } |
130 | 0 | 10 | unless open $fh, ">", $path |
133 | 0 | 10 | unless flock $fh, 2 |
139 | 10 | 0 | unless defined $path_is_fh |
163 | 100 | 0 | defined $stat[9] ? : |