Branch Coverage

blib/lib/DateTime/Fiction/JRRTolkien/Shire/Duration.pm
Criterion Covered Total %
branch 34 68 50.0


line true false branch
52 35 8 unless my $mode_specified = $arg{'end_of_month'} || $arg{'holiday'}
57 6 37 if (defined $arg{'holiday'})
59 0 6 if defined $arg{'end_of_month'}
65 35 8 unless defined $arg{'end_of_month'}
83 4 0 if (_isa($dur, 'DateTime::Fiction::JRRTolkien::Shire::Duration')) { }
0 0 elsif (_isa($dur, 'DateTime::Duration')) { }
160 12 13 $_[0]->is_wrap_mode ? :
162 0 0 $_[0]->is_wrap_mode ? :
184 0 0 if $on_side{$units[$inx]}
186 0 0 wantarray ? :
197 0 20 if ($arg{'holiday'}) { }
0 20 elsif ($arg{'end_of_month'}) { }
4 16 elsif ($self->{'mode_specified'}) { }
210 9 11 if $inverse{'weeks'}
212 4 16 if $inverse{'years'}
219 1 0 if $self->{'weeks'} > 0
221 0 0 if $self->{'years'} > 0
224 0 0 $self->{'duration'}->is_negative ? :
0 0 if $self->{'weeks'} or $self->{'years'}
230 0 1 if $self->{'weeks'} < 0
232 0 1 if $self->{'years'} < 0
235 1 0 $self->{'duration'}->is_positive ? :
1 0 if $self->{'weeks'} or $self->{'years'}
242 0 34 $self->{'duration'}->is_zero && 0 == $self->{'weeks'} && $self->{'years'} == 0 ? :
276 0 1 if $reverse
279 0 1 if _isa($right, 'DateTime::Fiction::JRRTolkien::Shire')
298 50 1 $arg->{'years'} * 365 + $arg->{'months'} * 30 + $arg->{'weeks'} * 7 >= 0 ? :
299 16 35 if $invert
311 0 2 if (1 == @arg and &Scalar::Util::blessed($arg[0]))
312 0 0 if $arg[0]->isa('DateTime::Fiction::JRRTolkien::Shire::Duration')
314 0 0 if $arg[0]->isa('DateTime::Duration')
328 0 6 unless my $rslt = $mode{$m}
342 0 1 if $reverse
345 0 1 if _isa($right, 'DateTime::Fiction::JRRTolkien::Shire')