Branch Coverage

lib/ChordPro/Paths.pm
Criterion Covered Total %
branch 28 70 40.0


line true false branch
19 0 379 if $reset
174 2 0 if $v eq ""
180 0 241 if $p =~ m[~[\\/](.*)]u
187 0 117 unless defined $p
189 27 90 if (index($p, $home) == 0)
196 0 0 if (defined $p)
200 0 0 if is_msw()
225 0 0 if (is_msw())
229 0 0 if (fn_is_absolute($p) and ChordPro::Files::fs_test("fx", $p))
231 0 0 if $self->debug
238 0 0 if fs_test("fx", $e)
240 0 0 if ($self->debug) { }
0 0 elsif (not $found || $opts{'silent'}) { }
255 0 119 if ($p =~ /\.\w+$/u) { }
256 0 0 if fs_test("fs", $p)
263 119 0 unless ($found)
267 119 119 if fs_test("fs", $f)
271 0 119 if $self->debug
281 0 42 if (fn_is_absolute($p)) { }
285 29 13 if (defined $opts{'class'})
290 26 16 if fs_test("fs", $f)
293 0 0 $opts{'class'} ? :
0 42 if $self->debug
304 0 49 if (defined $opts{'class'})
309 49 0 if fs_test("d", $d)
311 0 49 if ($self->debug)
313 0 0 unless @found
317 0 0 $opts{'class'} ? :
329 2 8 if ($opts{'name'}) { }
336 0 8 if defined $opts{'base'}
337 8 0 if defined $opts{'ext'}
340 8 0 if defined $e
344 0 10 if $self->debug
352 0 2 unless defined $orig
356 2 0 $try && fs_test('s', $try) ? :