Branch Coverage

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


line true false branch
16 34 21 if &$matcher($path)
25 36 52 unless ref $patterns eq 'ARRAY'
48 3 7 $c =~ s/^\\!// ? :
53 92 12 unless $pattern =~ m[\/$]
60 18 86 if ($pattern =~ /^!/) { }
88 1 126 if $match and not $pattern->{'negative'}
90 23 103 if ($pattern->{'negative'}) { }
91 12 11 if ($path =~ /$re/)
98 55 48 if ($match and not @negatives)