Branch Coverage

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


line true false branch
60 532 465 if (@components and _non_empty($components[0]))
64 623 374 if (@components > 1)
65 1580 21 if _non_empty($_)
68 1 996 unless @components or _non_empty($path)
70 532 464 _non_empty($components[0]) ? :
72 35 961 if (@hier == 1 and not _non_empty($hier[0]))
82 26 1296 unless (ref $context eq 'Filesys::POSIX::Path')
92 283 3977 unless defined $string
93 938 3039 if $string eq ''
140 143 99 if (@hier > 1)
143 23 120 if (@parts == 1 and not _non_empty($parts[0]))
150 1 98 $hier[0] eq '/' ? :
167 1 248 if _non_empty($ext)
194 10 3 if $_
207 6 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])