Branch Coverage

blib/lib/BusyBird/Main/PSGI.pm
Criterion Covered Total %
branch 42 56 75.0


line true false branch
59 179 6 if (my $dest = $$self{'router'}->match($env)) { }
63 0 179 defined $code ? :
94 0 152 unless defined $name
103 4 131 unless (defined $timeline)
115 4 66 lc $$dest{'format'} eq 'json' && $only_statuses ? :
0 70 !defined($$dest{'format'}) ? :
121 0 69 if (not looks_like_number $count or int $count != $count)
136 2 3 $is_normal_error ? :
4 1 $timeline ? :
151 5 24 if (ref $posted_obj ne 'ARRAY')
160 1 3 $is_normal_error ? :
173 23 4 if ($req->content)
175 0 23 if (ref $body_obj ne 'HASH')
187 1 2 $is_normal_error ? :
200 3 2 if (defined $$query_params{'total'})
204 0 5 unless looks_like_number $query_key
205 0 5 if int $query_key != $query_key
212 0 5 if ($error) { }
224 0 1 $is_normal_error ? :
236 3 14 if (not defined $level) { }
0 14 elsif ($level ne 'total' and !looks_like_number($level) || int $level != $level) { }
243 16 46 if substr($query_key, 0, 3) ne 'tl_'
251 0 15 if ($error) { }
264 0 2 $is_normal_error ? :
283 0 10 if (@timelines == 0)
289 7 3 if (defined $$query{'page'})
290 2 3 if (not looks_like_number($$query{'page'}) or $$query{'page'} < 0 or $$query{'page'} >= $page_num)
309 0 4 $is_normal_error ? :