Branch Coverage

blib/lib/Date/Handler/Range.pm
Criterion Covered Total %
branch 17 36 47.2


line true false branch
18 0 1 unless defined $args
19 0 1 unless defined $$args{'date'}
24 1 0 if (ref $args eq 'HASH') { }
27 1 0 if (UNIVERSAL::isa($$args{'date'}, 'Date::Handler')) { }
34 0 0 if (defined $date) { }
44 1 0 if (UNIVERSAL::isa($$args{'delta'}, 'Date::Handler::Delta')) { }
51 0 0 if (defined $delta) { }
75 1 4 if (defined $direction)
77 0 1 if ($direction =~ /FORWARDS/i or $direction eq 1) { }
1 0 elsif ($direction =~ /BACKWARDS/i or $direction eq 0) { }
87 1 4 unless defined $$self{'direction'}
97 0 2 if (defined $delta and $delta->isa('Date::Handler::Delta'))
109 0 4 if (defined $date and $date->isa('Date::Handler'))
120 1 1 if ($self->Direction) { }
134 1 1 if ($self->Direction) { }
149 0 0 unless $range->isa('Date::Handler::Range')
151 0 0 if $self->EndDate <= $range->StartDate
152 0 0 if $range->EndDate <= $self->StartDate