Branch Coverage

blib/lib/Cucumber/TagExpressions.pm
Criterion Covered Total %
branch 41 48 85.4


line true false branch
38 0 0 if $token ne $actual
45 43 194 if (length $state->{'text'} <= $state->{'pos'})
46 43 0 if $allow_eof
55 9 94 if defined $state->{'saved_token'}
60 14 28 $token ? :
42 191 unless defined $char
63 42 149 if ($char =~ /\s/) { }
10 139 elsif ($char eq '(' or $char eq ')') { }
64 41 1 if ($token) { }
72 4 6 if ($token) { }
80 4 135 if ($char eq '\\') { }
82 3 1 if ($char eq '(' or $char eq ')' or $char eq '\\' or $char =~ /\s/) { }
107 2 44 unless defined $token
110 5 39 if ($token eq '(') { }
5 34 elsif ($token eq 'not') { }
114 0 4 if (not $token or $token ne ")")
126 0 34 if ($token eq "and" or $token eq "or" or $token eq "not")
138 5 20 if (not defined $token or $token eq ")")
142 3 17 unless ($token eq "or" or $token eq "and")
148 7 8 if ($token eq 'and') { }
161 8 10 if (scalar @terms > 1)
180 0 20 if $text =~ /^\s*$/
189 1 13 if (defined $token)
190 1 0 if ($token eq ")")