Branch Coverage

blib/lib/BusyBird/Test/StatusStorage.pm
Criterion Covered Total %
branch 49 58 84.4


line true false branch
33 0 1829 unless defined $id
40 567 1262 if defined $level
41 570 1259 if defined $acked_at
53 120 30 $days > 0 ? :
55 120 30 $days > 0 ? :
64 8520 8520 ref $s_id ? :
72 5276 5276 ref $_ ? :
158 159 93 if ($args{'mode'} eq 'insert' or $args{'mode'} eq 'update' or $args{'mode'} eq 'upsert') { }
33 60 elsif ($args{'mode'} eq 'delete') { }
60 0 elsif ($args{'mode'} eq 'ack') { }
172 33 0 if exists $args{'target'}
181 18 42 if exists $args{'target'}
182 12 48 if exists $args{'target_max_id'}
183 30 30 if exists $args{'target_ids'}
238 4 8 if ($args{'is_ordered'}) { }
555 3 12 $_ == 1 ? :
620 15 15 $id <= 5 ? :
621 15 15 $correct_state eq 'acked' ? :
703 3 6 $mode eq 'update' ? :
800 3 33 unless defined $$case{'req'}
817 24 9 if exists $$case{'req'}{'ids'}
818 12 21 if exists $$case{'req'}{'max_id'}
866 6 6 if ($$got_statuses[0]{'id'} eq '0') { }
1350 0 15 unless defined $$case{'req'}
1391 0 3 if (not defined $options or ref $options ne 'HASH')
1394 0 3 unless defined $$options{'soft_max'}
1396 0 3 unless $soft_max > 0
1397 3 0 defined $$options{'hard_max'} ? :
1399 0 3 unless $hard_max >= $soft_max