Branch Coverage

blib/lib/File/FormatIdentification/Regex.pm
Criterion Covered Total %
branch 29 34 85.2


line true false branch
29 1 10 if ($rx =~ /^\^$/) { }
1 9 elsif ($rx =~ /^\$$/) { }
32 1 8 if ($rx =~ /\$$/)
62 2361 3396 unless $rx1 =~ /$rx/ and $rx2 =~ /$rx/
83 0 5836 if ($regex =~ /\\x[0-9]+/)
109 527 574 if (not defined $common or length $common == 0)
110 464 110 unless ($common =~ /^$subrg+$/)
115 11 99 if ($rx1 =~ /^(.*)$common$/ and $rx2 =~ /^(.*)$common$/) { }
9 90 elsif ($rx1 =~ /^$common(.*)$/ and $rx2 =~ /^$common(.*)$/) { }
123 9 2 if ($regex =~ /\(($subrg*)\)\|\(($subrg*)\)/) { }
2 0 elsif ($regex =~ /($subrg*)\|($subrg*)/) { }
142 7 2 if ($regex =~ /\(($subrg*)\)\|\(($subrg*)\)/) { }
2 0 elsif ($regex =~ /($subrg*)\|($subrg*)/) { }
158 264 36 if ($sub =~ /^($subrg)\1+$/)
167 0 36 if ($sub =~ /^$subrg$/) { }
183 581 0 if ($sub =~ /^$subrg$/) { }
233 1 4938 $tmp == 0 ? :