Branch Coverage

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


line true false branch
34 0 1829 unless defined $id
41 567 1262 if defined $level
42 570 1259 if defined $acked_at
54 120 30 $days > 0 ? :
56 120 30 $days > 0 ? :
65 8520 8520 ref $s_id ? :
73 5276 5276 ref $_ ? :
159 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') { }
173 33 0 if exists $args{'target'}
182 18 42 if exists $args{'target'}
183 12 48 if exists $args{'target_max_id'}
184 30 30 if exists $args{'target_ids'}
239 4 8 if ($args{'is_ordered'}) { }
556 3 12 $_ == 1 ? :
621 15 15 $id <= 5 ? :
622 15 15 $correct_state eq 'acked' ? :
704 3 6 $mode eq 'update' ? :
801 3 33 unless defined $$case{'req'}
818 24 9 if exists $$case{'req'}{'ids'}
819 12 21 if exists $$case{'req'}{'max_id'}
867 6 6 if ($$got_statuses[0]{'id'} eq '0') { }
1351 0 15 unless defined $$case{'req'}
1392 0 3 if (not defined $options or ref $options ne 'HASH')
1395 0 3 unless defined $$options{'soft_max'}
1397 0 3 unless $soft_max > 0
1398 3 0 defined $$options{'hard_max'} ? :
1400 0 3 unless $hard_max >= $soft_max