Branch Coverage

blib/lib/Router/Pygmy.pm
Criterion Covered Total %
branch 18 22 81.8


line true false branch
23 2 1 if (@_)
30 1 1 ref $_[0] && ref $_[0] eq 'HASH' ? :
32 2 0 if (my $routes = $args{'routes'})
50 2 11 if (my $duplicit_route = $this->{'route_for'}{$name})
60 17 16 defined $part ? :
65 0 11 if (my $duplicit_name = $lookup->[$ROUTE_IDX])
81 1 13 unless my $route = $this->{'route_for'}{$name}
98 13 13 if (my $by_path_part = $lookup->[$PATH_PART_IDX]{$part}) { }
11 2 elsif (my $by_arg = $lookup->[$ARG_IDX]) { }
111 6 0 $name ? :
117 0 2 unless my($name, $args) = $this->match(@_)