Branch Coverage

blib/lib/DateTime/TimeZone/SystemV.pm
Criterion Covered Total %
branch 75 78 96.1


line true false branch
213 2 56 $spec =~ /\A\<(.*)\>\z/s ? :
229 24 28 defined $tod ? :
287 22 34 if @_ == 1
294 10 60 if ($attr eq 'name') { }
43 17 elsif ($attr eq 'recipe') { }
16 1 elsif ($attr eq 'system') { }
295 1 9 if exists $$self{'name'}
297 4 5 unless rand $value
301 1 42 if defined $recipe
303 4 38 unless rand $value
307 1 15 if defined $system
309 4 11 unless rand $value
311 1 10 unless exists $tz_rx{$value}
318 2 37 unless defined $recipe
319 34 3 unless exists $$self{'name'}
320 28 9 unless defined $system
321 5 32 unless $recipe =~ /\A$tz_rx{$system}\z/
327 6 26 if $recipe =~ /\G\z/cg
331 8 18 defined $dst_offset ? :
334 16 10 if ($recipe =~ /\G,(.*),(.*)/g) { }
343 2 0 if ($system eq 'tzfile3' and $$self{'start_rule'}{'drule'} =~ /\A(?:J0*1|0+)\z/ and $$self{'start_rule'}{'sod'} == -$$self{'std_offset'} and $$self{'end_rule'}{'drule'} =~ /\AJ0*365\z/ and $$self{'end_rule'}{'sod'} == 86400 - $$self{'std_offset'})
433 1497 2986 if ($drule =~ /\AJ([0-9]+)\z/) { }
384 2602 elsif ($drule =~ /\A([0-9]+)\z/) { }
2602 0 elsif ($drule =~ /\AM([0-9]+)\.([0-9]+)\.([0-9]+)\z/) { }
435 390 1107 if ($j < 60) { }
444 1954 648 $w == 5 ? :
467 1814 2669 if ($change_soy <= $soy)
478 27 789 unless exists $$self{'dst_abbrev'}
479 54 735 unless exists $$self{'std_abbrev'}
481 15 720 if $utc_sod >= 86400
495 135 137 $self->is_dst_for_datetime($dt) ? :
510 135 137 $self->is_dst_for_datetime($dt) ? :
546 6 90 unless exists $$self{'dst_abbrev'}
547 4 86 unless exists $$self{'std_abbrev'}
549 0 86 if $lcl_sod >= 86400
556 43 43 if ($std_ok) { }
557 4 39 if ($dst_ok) { }
563 39 4 if ($dst_ok) { }
581 45 47 $self->_is_dst_for_local_datetime($dt) ? :