Branch Coverage

blib/lib/Text/Gitignore.pm
Criterion Covered Total %
branch 20 20 100.0


line true false branch
16 34 21 if &$matcher($path)
25 36 53 unless ref $patterns eq 'ARRAY'
48 3 7 $c =~ s/^\\!// ? :
53 95 12 unless $pattern =~ m[\/$]
60 19 88 if ($pattern =~ /^!/) { }
88 1 135 if $match and not $pattern->{'negative'}
90 26 109 if ($pattern->{'negative'}) { }
91 14 12 if ($path =~ /$re/)
96 75 34 if $path =~ /$re/
98 55 54 if ($match and not @negatives)