Branch Coverage

blib/lib/Gears/Router/Pattern/SigilMatch.pm
Criterion Covered Total %
branch 23 28 82.1


line true false branch
58 41 11 if (noslash $switch) { }
11 0 elsif (matchall $switch) { }
65 15 37 if (optional $switch)
66 10 5 if $char eq "/"
112 52 85 if ($part eq '{}') { }
121 0 33 if ($self->is_bridge) { }
130 0 0 unless $trailing_slash
135 33 0 unless $trailing_slash
149 53 97 unless $request_path =~ $self->_regex
168 1 12 unless defined $value or optional $token->{'sigil'}
170 9 3 if (defined $value)
172 2 7 unless noslash $token->{'sigil'}
181 9 3 if (defined $value) { }
183 2 7 if $check and not $value =~ /^$check$/u