Branch Coverage

blib/lib/Filesys/POSIX/Path.pm
Criterion Covered Total %
branch 34 36 94.4


line true false branch
60 514 461 if (@components and _non_empty($components[0]))
64 618 357 if (@components > 1)
65 1550 21 if _non_empty($_)
68 1 974 unless @components or _non_empty($path)
70 514 460 _non_empty($components[0]) ? :
72 34 940 if (@hier == 1 and not _non_empty($hier[0]))
82 23 1275 unless (ref $context eq 'Filesys::POSIX::Path')
92 278 3890 unless defined $string
93 931 2959 if $string eq ''
140 144 94 if (@hier > 1)
143 23 121 if (@parts == 1 and not _non_empty($parts[0]))
150 1 93 $hier[0] eq '/' ? :
167 1 244 if _non_empty($ext)
194 10 3 if $_
207 5 1 unless ref $path eq 'Filesys::POSIX::Path'
209 3 2 if $_
223 1 1 unless ref $path eq 'Filesys::POSIX::Path'
261 0 0 unless _non_empty($$self[0])