Condition Coverage

blib/lib/Klonk/Routes.pm
Criterion Covered Total %
condition 0 19 0.0


and 3 conditions

line !l l&&!r l&&r condition
43 0 0 0 @_ > 1 and (@_ - 1) % 2
200 0 0 0 $req_method eq "HEAD" and my $info = $resource->{'GET'}
218 0 0 0 not $req_path =~ m[/\z]u and ("$req_path/") =~ /$dispatch_info->[0]/u

or 2 conditions

line l !l condition
150 0 0 -s $body || undef
165 0 0 $headers // {}

or 3 conditions

line l !l&&r !l&&!r condition
48 0 0 0 $routes{$pattern} //= do { my $chunks = _parse_route($pattern); my $weight = join("", map(chr(defined $_ ? 1 + length($_) : 0), @$chunks)) . "\x{7fffffff}"; +{"chunks", $chunks, "weight", $weight, "resource", {}} }
188 0 0 0 $dispatch_info //= _routes_prepare()