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'}
578 245 26 12 defined $args->{'am_pm'} and defined $args->{'hour_12'}
730 220 21 17 defined $args->{'am_pm'} && lc $args->{'am_pm'} eq lc $self->{'locale'}->am_pm_abbreviated->[0]
731 197 57 4 defined $args->{'hour'} and defined $args->{'hour_12'}
740 197 31 27 defined $args->{'hour'} and defined $args->{'am_pm'}
741 14 10 3 $is_am and $args->{'hour'} >= 12
10 11 3 not $is_am and $args->{'hour'} < 12
750 55 190 4 defined $args->{'year'} and defined $args->{'century'}
759 55 187 4 defined $args->{'year'} and defined $args->{'year_100'}
768 232 7 4 defined $args->{'time_zone_abbreviation'} and defined $args->{'time_zone_offset'}
770 0 3 1 $self->{'zone_map'}{$args->{'time_zone_abbreviation'}} and $self->{'zone_map'}{$args->{'time_zone_abbreviation'}} eq $args->{'time_zone_offset'}
785 108 8 24 defined $args->{$key} and $dt->$key != $args->{$key}
798 50 162 4 defined $args->{'month'} and defined $args->{'day_of_year'}

or 2 conditions

line l !l condition
516 0 294 $self->{'locale_days'} ||= \%locale_days
533 0 294 $self->{'locale_months'} ||= \%locale_months
650 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
741 3 3 21 $is_am and $args->{'hour'} >= 12 or not $is_am and $args->{'hour'} < 12