Branch Coverage

blib/lib/Kossy.pm
Criterion Covered Total %
branch 42 56 75.0


line true false branch
42 2 7 if (@_ < 2) { }
57 6 0 unless (ref $self)
59 6 0 if (@_ < 2) { }
92 34 1 $security_header_local ? :
106 2 33 if (exists $match_cache{$cache_key})
111 3 30 if ($method_not_allowed)
115 4 26 unless ($dest)
122 7 0 if (ref $_ and ref $_ eq "Kossy::Exception")
130 0 28 if ($] == 5.02 or $] == 5.0201) { }
141 0 15 unless defined $res
143 2 13 if ($res_t eq 'Kossy::Response') { }
0 13 elsif ($res_t eq 'Plack::Response') { }
0 13 elsif ($res_t eq 'ARRAY') { }
13 0 elsif (not $res_t) { }
169 20 0 if (ref $_ and ref $_ eq "Kossy::Exception")
195 1 7 defined $cache_dir ? :
204 4 6 if (defined $JSON_SERIALIZER)
205 2 2 if (builtin::blessed($JSON_SERIALIZER) and $JSON_SERIALIZER->can('encode')) { }
221 33 42 ref $klass ? :
222 7 68 unless ($_ROUTER->{$class})
231 41 2 ref $methods ? :
232 42 1 unless ($code)
236 1 42 unless ((ref $code || '') eq "CODE")
263 1 0 unless ($_FILTER->{$class})
266 1 0 if (@_)
274 1 0 ref $klass ? :
275 0 1 unless ($_FILTER->{$class})
280 0 1 unless $filter_subref