line |
true |
false |
branch |
54
|
0 |
183 |
unless looks_like_number($$self{'max_status_num'}) |
55
|
0 |
183 |
unless looks_like_number($$self{'hard_max_status_num'}) |
58
|
0 |
183 |
unless $$self{'hard_max_status_num'} >= $$self{'max_status_num'} |
75
|
2000 |
649 |
if ($$self{'path'} eq ':memory:') |
76
|
172 |
1828 |
unless $$self{'in_memory_dbh'} |
129
|
111 |
315 |
unless ($sth) |
142
|
371 |
2486 |
unless ($sth) |
151
|
34 |
34 |
if ($count <= 0) |
160
|
2 |
428 |
unless defined $timeline |
162
|
2 |
426 |
unless defined $mode |
163
|
0 |
71 |
if ($mode ne 'insert' and $mode ne 'update' and $mode ne 'upsert') |
167
|
2 |
424 |
unless defined $statuses |
168
|
0 |
424 |
if (ref $statuses ne 'HASH' and ref $statuses ne 'ARRAY') |
171
|
82 |
342 |
if (ref $statuses eq 'HASH') |
175
|
6 |
3303 |
if not defined $status && ref $status or ref $status ne 'HASH' |
176
|
24 |
3279 |
unless defined $$status{'id'} |
181
|
6 |
388 |
if @$statuses == 0 |
185
|
0 |
388 |
unless (defined $timeline_id) |
195
|
3211 |
38 |
if ($count > 0) |
200
|
325 |
45 |
if ($mode ne 'update' and $total_count > 0) |
204
|
8 |
362 |
if ($exceeding_delete_count > 0) |
210
|
18 |
0 |
if ($dbh) |
223
|
644 |
2077 |
unless (defined $record) |
238
|
0 |
3267 |
unless defined $$status{'id'} |
239
|
0 |
3267 |
unless defined $timeline_id |
256
|
2760 |
7559 |
if ($$record{'level'} != 0 or defined $$status{'busybird'}{'level'}) |
260
|
5328 |
4991 |
if (defined $acked_at_str or defined $$status{'busybird'}{'acked_at'}) |
264
|
10293 |
26 |
if (defined $created_at_str or defined $$status{'created_at'}) |
272
|
2106 |
4410 |
if (not defined $timestamp_str or $timestamp_str eq '') |
276
|
12 |
4398 |
unless defined $datetime |
285
|
5017 |
15621 |
if ($utc_timestamp_str eq $UNDEF_TIMESTAMP) |
296
|
2 |
1140 |
unless defined $timeline |
298
|
2 |
1138 |
unless defined $callback |
299
|
0 |
1138 |
if ref $callback ne 'CODE' |
300
|
864 |
274 |
defined $args{'ack_state'} ? : |
301
|
0 |
648 |
if ($ack_state ne 'any' and $ack_state ne 'unacked' and $ack_state ne 'acked') |
305
|
1136 |
2 |
defined $args{'count'} ? : |
306
|
0 |
1138 |
if ($count ne 'all' and not looks_like_number $count) |
312
|
86 |
1052 |
unless (defined $timeline_id) |
316
|
193 |
859 |
if (defined $max_id) |
318
|
78 |
115 |
unless (defined $max_id_cond) |
324
|
204 |
770 |
if ($count ne 'all') |
347
|
369 |
1487 |
if ($ack_state eq 'acked') { } |
|
970 |
517 |
elsif ($ack_state eq 'unacked') { } |
363
|
96 |
148 |
unless ($record) |
372
|
96 |
148 |
unless (defined $max_acked_at and defined $max_created_at) |
399
|
2 |
143 |
unless defined $timeline |
400
|
143 |
0 |
defined $args{'callback'} ? : |
401
|
0 |
143 |
if ref $callback ne 'CODE' |
403
|
0 |
73 |
if (defined $ids and ref $ids and ref $ids ne 'ARRAY') |
406
|
19 |
124 |
if (defined $ids and not ref $ids) |
409
|
2 |
141 |
if (defined $ids and grep {not defined $_;} @$ids) |
418
|
0 |
141 |
unless defined $timeline_id |
421
|
36 |
105 |
if (not defined $ids || defined $max_id) { } |
424
|
51 |
54 |
if (defined $max_id) |
426
|
33 |
18 |
if $max_id_count > 0 |
428
|
71 |
34 |
if (defined $ids) |
430
|
42 |
29 |
if $ids_count > 0 |
434
|
0 |
141 |
if $total_count < 0 |
438
|
0 |
0 |
if ($dbh) |
459
|
18 |
33 |
unless (defined $max_id_cond) |
471
|
14 |
57 |
if (@$ids == 0) |
482
|
57 |
127 |
unless ($sth) |
486
|
94 |
90 |
if ($count > 0) |
496
|
2 |
149 |
unless defined $timeline |
497
|
2 |
147 |
unless exists $args{'ids'} |
499
|
0 |
33 |
if (defined $ids and ref $ids and ref $ids ne 'ARRAY') |
502
|
15 |
132 |
if (defined $ids and not ref $ids) |
505
|
2 |
145 |
if (defined $ids and grep {not defined $_;} @$ids) |
508
|
145 |
0 |
defined $args{'callback'} ? : |
509
|
0 |
145 |
if ref $callback ne 'CODE' |
514
|
27 |
118 |
unless (defined $timeline_id) |
519
|
31 |
87 |
if (defined $ids) { } |
524
|
0 |
118 |
if $total_count < 0 |
530
|
0 |
0 |
if ($dbh) |
550
|
0 |
31 |
if @$ids == 0 |
557
|
31 |
53 |
unless ($sth) |
561
|
70 |
14 |
if ($count > 0) |
573
|
0 |
325 |
unless (defined $row) |
578
|
317 |
8 |
if ($total_count <= $$self{'hard_max_status_num'}) |
589
|
0 |
8 |
unless (defined $row) |
603
|
2 |
605 |
unless defined $timeline |
605
|
2 |
603 |
unless defined $callback |
606
|
0 |
603 |
if ref $callback ne 'CODE' |
611
|
260 |
343 |
unless (defined $timeline_id) |
635
|
0 |
126 |
if $$self{'vacuum_on_delete'} <= 0 |
636
|
4 |
122 |
if $add_count <= 0 |
645
|
0 |
122 |
unless (defined $row) |
650
|
17 |
105 |
if ($current_delete_count >= $$self{'vacuum_on_delete'}) |
670
|
2 |
45 |
unless defined $timeline |
672
|
2 |
43 |
unless defined $callback |
674
|
2 |
41 |
unless defined $query |
676
|
16 |
25 |
if (not $ref_query or $ref_query eq 'HASH') { } |
|
25 |
0 |
elsif ($ref_query eq 'ARRAY') { } |
683
|
2 |
39 |
if (grep {not defined $_;} @$query) |
691
|
4 |
35 |
unless (defined $timeline_id) |
697
|
56 |
76 |
ref $query_elem eq 'HASH' ? : |
698
|
12 |
120 |
unless (defined $status_id) |
707
|
28 |
92 |
unless ($sth) |
712
|
0 |
120 |
unless (defined $result) |
715
|
67 |
53 |
if (@$result) { } |