line |
true |
false |
branch |
53
|
0 |
183 |
unless looks_like_number($$self{'max_status_num'}) |
54
|
0 |
183 |
unless looks_like_number($$self{'hard_max_status_num'}) |
57
|
0 |
183 |
unless $$self{'hard_max_status_num'} >= $$self{'max_status_num'} |
74
|
2000 |
649 |
if ($$self{'path'} eq ':memory:') |
75
|
172 |
1828 |
unless $$self{'in_memory_dbh'} |
128
|
111 |
315 |
unless ($sth) |
141
|
371 |
2486 |
unless ($sth) |
150
|
34 |
34 |
if ($count <= 0) |
159
|
2 |
428 |
unless defined $timeline |
161
|
2 |
426 |
unless defined $mode |
162
|
0 |
71 |
if ($mode ne 'insert' and $mode ne 'update' and $mode ne 'upsert') |
166
|
2 |
424 |
unless defined $statuses |
167
|
0 |
424 |
if (ref $statuses ne 'HASH' and ref $statuses ne 'ARRAY') |
170
|
82 |
342 |
if (ref $statuses eq 'HASH') |
174
|
6 |
3303 |
if not defined $status && ref $status or ref $status ne 'HASH' |
175
|
24 |
3279 |
unless defined $$status{'id'} |
180
|
6 |
388 |
if @$statuses == 0 |
184
|
0 |
388 |
unless (defined $timeline_id) |
194
|
3211 |
38 |
if ($count > 0) |
199
|
325 |
45 |
if ($mode ne 'update' and $total_count > 0) |
203
|
8 |
362 |
if ($exceeding_delete_count > 0) |
209
|
18 |
0 |
if ($dbh) |
222
|
644 |
2077 |
unless (defined $record) |
237
|
0 |
3267 |
unless defined $$status{'id'} |
238
|
0 |
3267 |
unless defined $timeline_id |
255
|
2760 |
7559 |
if ($$record{'level'} != 0 or defined $$status{'busybird'}{'level'}) |
259
|
5328 |
4991 |
if (defined $acked_at_str or defined $$status{'busybird'}{'acked_at'}) |
263
|
10293 |
26 |
if (defined $created_at_str or defined $$status{'created_at'}) |
271
|
2106 |
4410 |
if (not defined $timestamp_str or $timestamp_str eq '') |
275
|
12 |
4398 |
unless defined $datetime |
284
|
5017 |
15621 |
if ($utc_timestamp_str eq $UNDEF_TIMESTAMP) |
295
|
2 |
1140 |
unless defined $timeline |
297
|
2 |
1138 |
unless defined $callback |
298
|
0 |
1138 |
if ref $callback ne 'CODE' |
299
|
864 |
274 |
defined $args{'ack_state'} ? : |
300
|
0 |
648 |
if ($ack_state ne 'any' and $ack_state ne 'unacked' and $ack_state ne 'acked') |
304
|
1136 |
2 |
defined $args{'count'} ? : |
305
|
0 |
1138 |
if ($count ne 'all' and not looks_like_number $count) |
311
|
86 |
1052 |
unless (defined $timeline_id) |
315
|
193 |
859 |
if (defined $max_id) |
317
|
78 |
115 |
unless (defined $max_id_cond) |
323
|
204 |
770 |
if ($count ne 'all') |
346
|
369 |
1487 |
if ($ack_state eq 'acked') { } |
|
970 |
517 |
elsif ($ack_state eq 'unacked') { } |
362
|
96 |
148 |
unless ($record) |
371
|
96 |
148 |
unless (defined $max_acked_at and defined $max_created_at) |
398
|
2 |
143 |
unless defined $timeline |
399
|
143 |
0 |
defined $args{'callback'} ? : |
400
|
0 |
143 |
if ref $callback ne 'CODE' |
402
|
0 |
73 |
if (defined $ids and ref $ids and ref $ids ne 'ARRAY') |
405
|
19 |
124 |
if (defined $ids and not ref $ids) |
408
|
2 |
141 |
if (defined $ids and grep {not defined $_;} @$ids) |
417
|
0 |
141 |
unless defined $timeline_id |
420
|
36 |
105 |
if (not defined $ids || defined $max_id) { } |
423
|
51 |
54 |
if (defined $max_id) |
425
|
33 |
18 |
if $max_id_count > 0 |
427
|
71 |
34 |
if (defined $ids) |
429
|
42 |
29 |
if $ids_count > 0 |
433
|
0 |
141 |
if $total_count < 0 |
437
|
0 |
0 |
if ($dbh) |
458
|
18 |
33 |
unless (defined $max_id_cond) |
470
|
14 |
57 |
if (@$ids == 0) |
481
|
57 |
127 |
unless ($sth) |
485
|
94 |
90 |
if ($count > 0) |
495
|
2 |
149 |
unless defined $timeline |
496
|
2 |
147 |
unless exists $args{'ids'} |
498
|
0 |
33 |
if (defined $ids and ref $ids and ref $ids ne 'ARRAY') |
501
|
15 |
132 |
if (defined $ids and not ref $ids) |
504
|
2 |
145 |
if (defined $ids and grep {not defined $_;} @$ids) |
507
|
145 |
0 |
defined $args{'callback'} ? : |
508
|
0 |
145 |
if ref $callback ne 'CODE' |
513
|
27 |
118 |
unless (defined $timeline_id) |
518
|
31 |
87 |
if (defined $ids) { } |
523
|
0 |
118 |
if $total_count < 0 |
529
|
0 |
0 |
if ($dbh) |
549
|
0 |
31 |
if @$ids == 0 |
556
|
31 |
53 |
unless ($sth) |
560
|
70 |
14 |
if ($count > 0) |
572
|
0 |
325 |
unless (defined $row) |
577
|
317 |
8 |
if ($total_count <= $$self{'hard_max_status_num'}) |
588
|
0 |
8 |
unless (defined $row) |
602
|
2 |
605 |
unless defined $timeline |
604
|
2 |
603 |
unless defined $callback |
605
|
0 |
603 |
if ref $callback ne 'CODE' |
610
|
260 |
343 |
unless (defined $timeline_id) |
634
|
0 |
126 |
if $$self{'vacuum_on_delete'} <= 0 |
635
|
4 |
122 |
if $add_count <= 0 |
644
|
0 |
122 |
unless (defined $row) |
649
|
17 |
105 |
if ($current_delete_count >= $$self{'vacuum_on_delete'}) |
669
|
2 |
45 |
unless defined $timeline |
671
|
2 |
43 |
unless defined $callback |
673
|
2 |
41 |
unless defined $query |
675
|
16 |
25 |
if (not $ref_query or $ref_query eq 'HASH') { } |
|
25 |
0 |
elsif ($ref_query eq 'ARRAY') { } |
682
|
2 |
39 |
if (grep {not defined $_;} @$query) |
690
|
4 |
35 |
unless (defined $timeline_id) |
696
|
56 |
76 |
ref $query_elem eq 'HASH' ? : |
697
|
12 |
120 |
unless (defined $status_id) |
706
|
28 |
92 |
unless ($sth) |
711
|
0 |
120 |
unless (defined $result) |
714
|
67 |
53 |
if (@$result) { } |