Branch Coverage

blib/lib/Date/Manip/Range.pm
Criterion Covered Total %
branch 22 26 84.6


line true false branch
157 4 3 if hascontent($range)
545 1 34 unless defined $self->start
546 0 34 unless defined $self->end
547 8 26 if $self->error ne ''
612 2 8 if hascontent($self->granularity)
667 2 30 if ($shortest =~ /year/iu) { }
9 21 elsif ($shortest =~ /month/iu) { }
686 0 63 if (scalar @pieces == 0) { }
8 55 elsif (scalar @pieces == 1) { }
12 43 elsif (scalar @pieces == 2) { }
689 7 1 if ($string =~ /^\d{4}$/u) { }
697 0 12 if ($pieces[0] =~ /^\d{4}$/u) { }
12 0 elsif ($pieces[1] =~ /^\d{4}$/u) { }