Condition Coverage

blib/lib/BusyBird/StatusStorage/SQLite.pm
Criterion Covered Total %
condition 66 81 81.4


and 3 conditions

line !l l&&!r l&&r condition
163 355 53 18 $mode ne 'insert' and $mode ne 'update'
408 18 0 $mode ne 'insert' and $mode ne 'update' and $mode ne 'upsert'
168 82 342 0 ref $statuses ne 'HASH' and ref $statuses ne 'ARRAY'
175 6 0 3303 defined $status && ref $status
200 43 2 325 $mode ne 'update' and $total_count > 0
301 490 320 328 $ack_state ne 'any' and $ack_state ne 'unacked'
810 328 0 $ack_state ne 'any' and $ack_state ne 'unacked' and $ack_state ne 'acked'
306 868 270 0 $count ne 'all' and not looks_like_number $count
372 96 148 0 defined $max_acked_at and defined $max_created_at
403 70 19 54 defined $ids and ref $ids
89 54 0 defined $ids and ref $ids and ref $ids ne 'ARRAY'
406 70 54 19 defined $ids and not ref $ids
409 70 71 2 defined $ids and grep {not defined $_;} @$ids
499 114 15 18 defined $ids and ref $ids
129 18 0 defined $ids and ref $ids and ref $ids ne 'ARRAY'
502 114 18 15 defined $ids and not ref $ids
505 114 31 2 defined $ids and grep {not defined $_;} @$ids

or 2 conditions

line l !l condition
178 394 0 $args{'callback'} || sub { }
240 139 3122 $$status{'busybird'}{'level'} || 0
345 1856 0 $ack_state ||= 'any'

or 3 conditions

line l !l&&r !l&&!r condition
175 6 0 3303 not defined $status && ref $status or ref $status ne 'HASH'
184 121 267 0 $self->_get_timeline_id($dbh, $timeline) || $self->_create_timeline($dbh, $timeline)
256 274 2486 7559 $$record{'level'} != 0 or defined $$status{'busybird'}{'level'}
260 5328 0 4991 defined $acked_at_str or defined $$status{'busybird'}{'acked_at'}
264 10293 0 26 defined $created_at_str or defined $$status{'created_at'}
272 2106 0 4410 not defined $timestamp_str or $timestamp_str eq ''
421 71 34 36 defined $ids || defined $max_id
676 6 10 25 not $ref_query or $ref_query eq 'HASH'