Condition Coverage

blib/lib/Date/HolidayParser.pm
Criterion Covered Total %
condition 16 46 34.7


and 2 conditions

line l !l condition
217 0 0 warn qq[_Get_YDay: Invalid usage: must be numeric. Got "$Unix_Time"] and return undef
376 0 0 $self->_HolidayError($LineNo, $File, qq[\$CreativeParer->{Number} is "$CreativeParser->{'Number'}"], 'This is a bug in the parser. This line will be ignored') and next
526 0 0 carp("$File does not exist") and return undef
527 0 0 carp("$File is not readable") and return undef
706 0 0 $self->_SyntaxError($LineNo, $File, 'Unreasonably high number', 'Ignoring the number. This might give weird results') and next

and 3 conditions

line !l l&&!r l&&r condition
243 0 0 0 $BeSilent and not $self->silent
309 0 5 15 defined $CreativeParser->{'IsMonth'} and defined $CreativeParser->{'Number'}
0 0 5 defined $CreativeParser->{'IsMonth'} and defined $CreativeParser->{'DateNumeric'}
464 45 5 0 defined $CreativeParser->{'Every'} and not defined $CreativeParser->{'Number'}
468 45 5 0 defined $CreativeParser->{'Every'} and defined $CreativeParser->{'Length'}
473 0 0 50 defined $FinalYDay and $FinalYDay =~ /^\d+$/
483 50 0 5 defined $CreativeParser->{'Every'} and defined $CreativeParser->{'Number'}
50 0 0 defined $CreativeParser->{'Length'} and $CreativeParser->{'Length'} > 0
621 0 0 0 defined $HolidayType and $HolidayType eq 'red'
708 12 0 18 defined $CreativeParser{'NextIs'} and $CreativeParser{'NextIs'}

or 3 conditions

line l !l&&r !l&&!r condition
59 0 0 56 $Year < 1971 or $Year > 2037
298 25 25 0 defined $CreativeParser->{'IsMonth'} or defined $NumericYDay