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 4539 3828 unless $rx1 =~ /$rx/ and $rx2 =~ /$rx/
83 0 8182 if ($regex =~ /\\x[0-9]+/)
109 641 988 if (not defined $common or length $common == 0)
110 881 107 unless ($common =~ /^$subrg+$/)
115 11 96 if ($rx1 =~ /^(.*)$common$/ and $rx2 =~ /^(.*)$common$/) { }
9 87 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 279 60 if ($sub =~ /^($subrg)\1+$/)
167 0 60 if ($sub =~ /^$subrg$/) { }
183 656 0 if ($sub =~ /^$subrg$/) { }
233 1 7137 $tmp == 0 ? :