Branch Coverage

blib/lib/Random/Day.pm
Criterion Covered Total %
branch 25 36 69.4


line true false branch
51 0 3 if ($self->{'year'}) { }
52 0 0 if ($self->{'month'}) { }
53 0 0 if ($self->{'day'}) { }
66 0 0 if ($self->{'day'}) { }
76 0 3 if ($self->{'month'}) { }
77 0 0 if ($self->{'day'}) { }
86 0 3 if ($self->{'day'}) { }
128 6 3 unless (defined $dt)
147 3 9 if ($Random::Day::EVAL_ERROR)
152 3 6 if ("DateTime"->compare($self->{'dt_from'}, $dt) == 1)
163 3 3 if ("DateTime"->compare($dt, $self->{'dt_to'}) == 1)
197 6 12 if ($Random::Day::EVAL_ERROR)
202 3 9 if ("DateTime"->compare($self->{'dt_from'}, $after) == 1)
214 3 6 if ("DateTime"->compare($before, $self->{'dt_to'}) == 1)
234 3 6 if ($self->{'dt_from'}->year > $year)
240 3 3 if ($self->{'dt_to'}->year < $year)
267 18 36 unless ($day =~ /^\d+$/ms)
270 9 27 if ($day == 0)