Branch Coverage

blib/lib/BusyBird/StatusStorage/Common.pm
Criterion Covered Total %
branch 44 48 91.6


line true false branch
16 1 31 unless defined $args{'timeline'}
18 16 15 if (defined $args{'ids'})
19 6 10 if (not ref $args{'ids'}) { }
10 0 elsif (ref $args{'ids'} eq 'ARRAY') { }
23 1 9 if grep {not defined $_;} @$ids
35 21 9 if (not defined $ids or defined $max_id)
46 6 24 unless (@target_statuses)
72 17 13 unless (defined $ids and @$ids)
84 24 12 defined $$_[0] ? :
99 1 15 unless defined $timeline
100 1 14 unless defined $query
101 1 13 unless defined $callback
102 8 5 if (ref $query eq 'ARRAY') { }
5 0 elsif (ref $query eq 'HASH' or not ref $query) { }
109 1 12 if (grep {not defined $_;} @$query)
112 1 11 unless (@$query)
118 13 43 ref $query_elem ? :
119 53 3 defined $id ? :
124 0 11 if (@statuses_list != @$query)
130 20 36 if (@{$statuses_list[$i];}) { }
150 1 15 unless defined $args{'timeline'}
151 1 14 unless defined $args{'callback'}
160 0 14 if (defined $error)
168 26 13 unless $$status{'busybird'}{'level'}