Branch Coverage

blib/lib/Path/Router/Route.pm
Criterion Covered Total %
branch 31 42 73.8


line true false branch
88 0 68 unless $self->has_validations
95 1 43 unless (exists $components{$validation})
106 35 43 if $self->is_component_variable($_)
118 27 29 if $self->is_component_variable($_)
161 8 6 unless @$parts >= $self->length_without_optionals and @$parts <= $self->length
167 6 0 $self->has_defaults ? :
170 0 15 unless (@parts)
171 0 0 unless $self->is_component_optional($c)
178 7 8 if ($self->is_component_variable($c)) { }
180 7 0 if (my $v = $self->has_validation_for($name))
181 0 7 unless $v->check($part)
185 0 8 unless $c eq $part
204 53 65 if ($self->is_component_variable($c)) { }
212 9 109 if ($self->is_component_optional($c))
219 3 51 unless defined $regexp[0]
241 32 22 if (@variables)
262 54 0 if ($self->has_defaults) { }
272 32 22 if (@variables)
281 39 14 if ($self->has_validation_for($v))
321 5 0 if ($self->has_defaults)
325 5 0 if ($self->has_validations)