Condition Coverage

blib/lib/DateTime/Format/CLDR.pm
Criterion Covered Total %
condition 70 98 71.4


and 3 conditions

line !l l&&!r l&&r condition
410 7 0 94 ref $time_zone and $time_zone->isa('DateTime::TimeZone')
440 86 14 0 ref $locale && ($locale->isa('DateTime::Locale::Base') || $locale->isa('DateTime::Locale::FromData'))
607 94036 12005 2212 $command eq 'y' and $index == 2
65505 11 5 $command eq 'e' and $index == 1
0 3414 3415 $command eq 'z' || $command eq 'v' || $command eq 'V' and $index == 1
685 8337 0 8796 defined $datetime_info{'hour12'} and defined $datetime_info{'ampm'}
689 2934 0 5862 $datetime_info{'ampm'} == 2 and $datetime{'hour'} < 12
700 1 0 2 $datetime{'minute'} == 0 and $datetime{'second'} == 0
1 0 2 $datetime{'minute'} == 0 and $datetime{'second'} == 0 and $datetime{'nanosecond'} == 0
711 17117 15 0 defined $datetime_info{'era'} and $datetime_info{'era'} == 0
17132 0 0 defined $datetime_info{'era'} and $datetime_info{'era'} == 0 and defined $datetime{'year'}
718 2917 0 14215 defined $datetime{'year'} and defined $datetime{'month'}
2917 3 14212 defined $datetime{'year'} and defined $datetime{'month'} and defined $datetime{'day'}
776 0 0 17077 defined $dt and ref $dt
0 0 17077 defined $dt and ref $dt and $dt->isa('DateTime')

or 2 conditions

line l !l condition
726 0 2918 $datetime{'day'} ||= 1
727 37 2881 $datetime{'month'} ||= 1
728 1 2917 $datetime{'year'} ||= 1
833 1 0 $locale ||= 'en'

or 3 conditions

line l !l&&r !l&&!r condition
341 17 81 0 $args{'time_zone'} ||= 'DateTime::TimeZone'->new('name', 'floating')
482 1 30 68 ref $on_error eq 'CODE' or $on_error eq 'croak'
31 67 1 ref $on_error eq 'CODE' or $on_error eq 'croak' or $on_error eq 'undef'
524 1 96 2 ref $incomplete eq 'CODE' or $incomplete eq '1'
97 1 1 ref $incomplete eq 'CODE' or $incomplete eq '1' or $incomplete eq 'incomplete'
607 15 15 94006 $command eq 'Q' or $command eq 'q'
14239 15 79752 $command eq 'M' or $command eq 'L'
3295 15 62206 $command eq 'E' or $command eq 'c'
3310 11 62195 $command eq 'E' or $command eq 'c' or $command eq 'e'
6829 0 0 $command eq 'z' || $command eq 'v' || $command eq 'V'
3414 0 0 $command eq 'z' or $command eq 'v'
3414 0 0 $command eq 'z' or $command eq 'v' or $command eq 'V'
662 0 1 3414 not defined $ZONEMAP{$capture} or $ZONEMAP{$capture} eq 'Ambiguous'
734 0 0 1 $@ or ref $dt ne 'DateTime::Incomplete'
746 3 0 17128 $@ or ref $dt ne 'DateTime'