Branch Coverage

blib/lib/Kossy.pm
Criterion Covered Total %
branch 35 56 62.5


line true false branch
42 2 4 if (@_ < 2) { }
57 3 0 unless (ref $self)
59 3 0 if (@_ < 2) { }
95 18 1 $security_header_local ? :
109 2 17 if (exists $match_cache{$cache_key})
114 2 15 unless (@match)
118 2 13 unless (exists $match[0]{$method})
122 11 2 unless scalar keys %{$match[1];}
125 4 0 if (ref $_ and ref $_ eq "Kossy::Exception")
133 0 15 if ($] == 5.02 or $] == 5.0201) { }
144 0 15 unless defined $res
146 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) { }
172 4 0 if (ref $_ and ref $_ eq "Kossy::Exception")
198 1 4 defined $cache_dir ? :
207 4 3 if (defined $JSON_SERIALIZER)
208 2 2 if (&Scalar::Util::blessed($JSON_SERIALIZER) and $JSON_SERIALIZER->can('encode')) { }
224 22 53 ref $klass ? :
225 4 71 unless ($_ROUTER->{$class})
234 28 0 ref $methods ? :
235 28 0 unless ($code)
265 0 0 unless ($_FILTER->{$class})
268 0 0 if (@_)
276 0 0 ref $klass ? :
277 0 0 unless ($_FILTER->{$class})
282 0 0 unless $filter_subref