Condition Coverage

blib/lib/DateTime/Format/Strptime.pm
Criterion Covered Total %
condition 50 57 87.7


and 3 conditions

line !l l&&!r l&&r condition
252 5 0 267 $constructor and $args
260 3 66 192 $dt and $self->_check_dt($dt, \%args)
291 294 0 0 $self->{'debug'} and $pattern ne $self->{'pattern'}
579 245 26 12 defined $args->{'am_pm'} and defined $args->{'hour_12'}
731 220 21 17 defined $args->{'am_pm'} && lc $args->{'am_pm'} eq lc $self->{'locale'}->am_pm_abbreviated->[0]
732 197 57 4 defined $args->{'hour'} and defined $args->{'hour_12'}
741 197 31 27 defined $args->{'hour'} and defined $args->{'am_pm'}
742 14 10 3 $is_am and $args->{'hour'} >= 12
10 11 3 not $is_am and $args->{'hour'} < 12
751 55 190 4 defined $args->{'year'} and defined $args->{'century'}
760 55 187 4 defined $args->{'year'} and defined $args->{'year_100'}
769 232 7 4 defined $args->{'time_zone_abbreviation'} and defined $args->{'time_zone_offset'}
771 0 3 1 $self->{'zone_map'}{$args->{'time_zone_abbreviation'}} and $self->{'zone_map'}{$args->{'time_zone_abbreviation'}} eq $args->{'time_zone_offset'}
786 108 8 24 defined $args->{$key} and $dt->$key != $args->{$key}
799 50 162 4 defined $args->{'month'} and defined $args->{'day_of_year'}

or 2 conditions

line l !l condition
517 0 294 $self->{'locale_days'} ||= \%locale_days
534 0 294 $self->{'locale_months'} ||= \%locale_months
651 7 252 $args->{'time_zone'} ||= "floating"

or 3 conditions

line l !l&&r !l&&!r condition
271 289 294 0 $self->{'parser'} ||= $self->_build_parser
742 3 3 21 $is_am and $args->{'hour'} >= 12 or not $is_am and $args->{'hour'} < 12