Branch Coverage

blib/lib/Kossy.pm
Criterion Covered Total %
branch 30 52 57.6


line true false branch
39 2 3 if (@_ < 2) { }
54 2 0 unless (ref $self)
56 2 0 if (@_ < 2) { }
97 0 2 defined $xslate_cache_dir_local ? :
105 17 1 $security_header_local ? :
118 2 16 if (exists $match_cache{$cache_key})
123 2 14 unless (@match)
127 2 12 unless (exists $match[0]{$method})
131 10 2 unless scalar keys %{$match[1];}
134 4 0 if (ref $_ and ref $_ eq 'Kossy::Exception')
142 0 14 if ($] == 5.02 or $] == 5.0201) { }
153 0 14 unless defined $res
155 1 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) { }
181 4 0 if (ref $_ and ref $_ eq 'Kossy::Exception')
194 20 51 ref $klass ? :
195 3 68 unless ($_ROUTER->{$class})
204 27 0 ref $methods ? :
205 27 0 unless ($code)
235 0 0 unless ($_FILTER->{$class})
238 0 0 if (@_)
246 0 0 ref $klass ? :
247 0 0 unless ($_FILTER->{$class})
252 0 0 unless $filter_subref