Branch Coverage

blib/lib/Cucumber/TagExpressions.pm
Criterion Covered Total %
branch 40 42 95.2


line true false branch
36 0 4 if $token ne $actual
43 48 206 if (length $state->{'text'} <= $state->{'pos'})
44 47 1 if $allow_eof
53 9 101 if defined $state->{'saved_token'}
56 30 71 unless defined $token
58 6 65 if ($token eq '(' or $token eq ')') { }
62 1 64 if $token =~ /\s/
65 17 131 unless defined $char
67 43 88 if ($char =~ /\s/) { }
4 84 elsif ($char eq '(' or $char eq ')') { }
74 5 79 if ($char eq '\\') { }
95 2 48 unless defined $token
98 5 43 if ($token eq '(') { }
5 38 elsif ($token eq 'not') { }
38 0 elsif ($token =~ /^@/) { }
110 2 36 if $token eq "\@"
126 5 21 if ($token eq ")")
130 3 18 unless ($token eq "or" or $token eq "and")
136 7 8 if ($token eq 'and') { }
149 8 11 if (scalar @terms > 1)
171 1 14 if defined $token