Branch Coverage

blib/lib/DateTime/Format/Epoch.pm
Criterion Covered Total %
branch 38 50 76.0


line true false branch
13 0 19 $^O eq 'MSWin32' ? :
19 4 0 if ($ix <= $x) { }
40 6 21 unless exists $units_per_second{$_[0]}
54 36 0 if $p{'epoch'}->can('clone')
57 1 35 if $p{'dhms'}
59 11 25 unless ($p{'type'})
60 1 10 $p{'unit'} > 1000000 ? :
66 5 31 unless ($p{'skip_leap_seconds'})
78 18 64 unless (ref $self)
82 5 27 if $$self{'local_epoch'} and $$self{'epoch'}->can('time_zone') and $$self{'epoch'}->time_zone->is_floating and $dt->can('time_zone') and not $dt->time_zone->is_floating
95 16 66 unless ($$self{'skip_leap_seconds'})
100 21 61 if ($$self{'type'} eq 'bigint')
106 82 0 if ($dt->can('nanosecond'))
108 1 81 if ($$self{'type'} eq 'float') { }
117 5 77 if ($$self{'dhms'})
134 0 4 unless (ref $self)
138 0 4 if ($$self{'dhms'})
157 1 3 if (not $$self{'skip_leap_seconds'}) { }
160 1 0 if ($rd_secs >= DateTime::LeapSecond::day_length($rd_days)) { }
0 0 elsif ($rd_secs < 0) { }
168 0 3 if ($rd_secs >= 86400)
174 1 3 if UNIVERSAL::isa($rd_days, 'Math::BigInt')
175 1 3 if UNIVERSAL::isa($rd_secs, 'Math::BigInt')
182 4 0 unless ($$self{'local_epoch'})
183 4 0 if $dt->can('set_time_zone')