Condition Coverage

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


and 2 conditions

line l !l condition
221 0 0 warn qq[_Get_YDay: Invalid usage: must be numeric. Got "$Unix_Time"] and return undef
380 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
530 0 0 carp("$File does not exist") and return undef
531 0 0 carp("$File is not readable") and return undef
710 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
247 0 0 0 $BeSilent and not $self->silent
313 0 5 15 defined $$CreativeParser{'IsMonth'} and defined $$CreativeParser{'Number'}
0 0 5 defined $$CreativeParser{'IsMonth'} and defined $$CreativeParser{'DateNumeric'}
468 45 5 0 defined $$CreativeParser{'Every'} and not defined $$CreativeParser{'Number'}
472 45 5 0 defined $$CreativeParser{'Every'} and defined $$CreativeParser{'Length'}
477 0 0 50 defined $FinalYDay and $FinalYDay =~ /^\d+$/
487 50 0 5 defined $$CreativeParser{'Every'} and defined $$CreativeParser{'Number'}
50 0 0 defined $$CreativeParser{'Length'} and $$CreativeParser{'Length'} > 0
625 0 0 0 defined $HolidayType and $HolidayType eq 'red'
712 12 0 18 defined $CreativeParser{'NextIs'} and $CreativeParser{'NextIs'}

or 3 conditions

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