Branch Coverage

blib/lib/enum.pm
Criterion Covered Total %
branch 36 60 60.0


line true false branch
17 5 15 unless @_
27 139 71 if (/^$Ident$/o) { }
28 43 elsif (/^($Ident)=(-?)(.+)$/o) { }
33 10 elsif (/^([A-Z]*):($Ident)?(=?)(-?)(.*)/) { }
10 0 elsif (/^($Ident)\.\.($Ident)$/o) { }
30 139 0 if ($mode == 1) { }
0 0 elsif ($mode == 2) { }
36 0 0 if ($index & $index - 1)
57 1 27 if ($index =~ /^0x[0-9a-f]+$/i) { }
1 26 elsif ($index =~ /^0[0-9]/) { }
26 0 elsif (not $index =~ /[^0-9_]/) { }
68 0 28 if ($index =~ /\D/) { }
78 0 28 if ($mode == 2) { }
28 0 elsif ($mode == 1) { }
79 0 0 if $index & $index - 1
96 3 30 if ($1)
97 0 3 if ($1 eq 'ENUM') { }
3 0 elsif ($1 eq 'BITMASK') { }
105 23 10 if ($3)
106 23 0 if (length $5) { }
110 0 23 if ($index =~ /^0x[0-9a-f]+$/i) { }
0 23 elsif ($index =~ /^0[0-9]/) { }
23 0 elsif (not $index =~ /[^0-9_]/) { }
121 0 23 if ($index =~ /[^0-9]/) { }
130 3 20 if ($mode == 2)
131 3 0 if $index & $index - 1
141 15 15 defined $2 ? :
150 0 260 if ($mode == 2) { }
260 0 elsif ($mode == 1) { }
151 0 0 if $index & $index - 1