Branch Coverage

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


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