Branch Coverage

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


line true false branch
32 0 229 if $$self{'name'} eq ''
47 11 535 if (defined $error)
61 0 211 if (not defined $exp_unacked_counts or ref $exp_unacked_counts ne 'HASH')
64 10 201 unless %$exp_unacked_counts
68 89 146 if $exp_val != $got_val
75 286 14 if (int @watchers <= $$self{'watcher_max'})
79 4 10 $watcher_age > $$self{'watcher_max'} ? :
111 304 13 if defined $orig_callback
132 0 183 unless (defined $args{'statuses'})
136 9 174 if ($ref eq 'HASH') { }
0 174 elsif ($ref ne 'ARRAY') { }
147 0 1521 if not defined $status or ref $status ne 'HASH'
148 19 1502 unless (defined $$status{'id'})
151 16 1505 unless (defined $$status{'created_at'})
175 33 24 unless ($is_async)
203 10 159 if (not defined $callback or ref $callback ne 'CODE')
206 10 149 if (not defined $assumed or ref $assumed ne 'HASH')
211 176 15 if $key eq 'total' or looks_like_number $key and int $key == $key
218 4 99 if ($res{'watcher_quota'})
223 99 0 if ($res{'unacked_counts'})
231 111 38 if ($watcher->active)