Branch Coverage

blib/lib/BusyBird/Timeline.pm
Criterion Covered Total %
branch 36 42 85.7


line true false branch
31 0 229 if $$self{'name'} eq ''
46 11 535 if (defined $error)
60 0 212 if (not defined $exp_unacked_counts or ref $exp_unacked_counts ne 'HASH')
63 10 202 unless %$exp_unacked_counts
67 89 146 if $exp_val != $got_val
74 289 13 if (int @watchers <= $$self{'watcher_max'})
78 4 9 $watcher_age > $$self{'watcher_max'} ? :
110 304 13 if defined $orig_callback
131 0 183 unless (defined $args{'statuses'})
135 9 174 if ($ref eq 'HASH') { }
0 174 elsif ($ref ne 'ARRAY') { }
146 0 1521 if not defined $status or ref $status ne 'HASH'
147 19 1502 unless (defined $$status{'id'})
150 16 1505 unless (defined $$status{'created_at'})
174 33 24 unless ($is_async)
202 10 160 if (not defined $callback or ref $callback ne 'CODE')
205 10 150 if (not defined $assumed or ref $assumed ne 'HASH')
210 177 15 if $key eq 'total' or looks_like_number $key and int $key == $key
217 4 99 if ($res{'watcher_quota'})
222 99 0 if ($res{'unacked_counts'})
230 112 38 if ($watcher->active)