Branch Coverage

blib/lib/enum.pm
Criterion Covered Total %
branch 29 60 48.3


line true false branch
18 5 11 unless @_
28 139 65 if (/^$Ident$/o) { }
25 40 elsif (/^($Ident)=(-?)(.+)$/o) { }
30 10 elsif (/^([A-Z]*):($Ident)?(=?)(-?)(.*)/) { }
10 0 elsif (/^($Ident)\.\.($Ident)$/o) { }
31 139 0 if ($mode == 1) { }
0 0 elsif ($mode == 2) { }
37 0 0 if ($index & $index - 1)
58 0 25 if ($index =~ /^0x[0-9a-f]+$/i) { }
0 25 elsif ($index =~ /^0[0-9]/) { }
25 0 elsif (not $index =~ /[^0-9_]/) { }
69 0 25 if ($index =~ /\D/) { }
79 0 25 if ($mode == 2) { }
25 0 elsif ($mode == 1) { }
80 0 0 if $index & $index - 1
97 0 30 if ($1)
98 0 0 if ($1 eq 'ENUM') { }
0 0 elsif ($1 eq 'BITMASK') { }
106 20 10 if ($3)
107 20 0 if (length $5) { }
111 0 20 if ($index =~ /^0x[0-9a-f]+$/i) { }
0 20 elsif ($index =~ /^0[0-9]/) { }
20 0 elsif (not $index =~ /[^0-9_]/) { }
122 0 20 if ($index =~ /[^0-9]/) { }
131 0 20 if ($mode == 2)
132 0 0 if $index & $index - 1
142 15 15 defined $2 ? :
151 0 260 if ($mode == 2) { }
260 0 elsif ($mode == 1) { }
152 0 0 if $index & $index - 1