Condition Coverage

blib/lib/DateTime/Format/CLDR.pm
Criterion Covered Total %
condition 71 98 72.4


and 3 conditions

line !l l&&!r l&&r condition
410 7 0 109 ref $time_zone and $time_zone->isa('DateTime::TimeZone')
440 101 14 0 ref $locale && ($locale->isa('DateTime::Locale::Base') || $locale->isa('DateTime::Locale::FromData'))
607 66952 9090 750 $command eq 'y' and $index == 2
47205 11 5 $command eq 'e' and $index == 1
0 2316 2317 $command eq 'z' || $command eq 'v' || $command eq 'V' and $index == 1
685 6888 0 5868 defined $datetime_info{'hour12'} and defined $datetime_info{'ampm'}
689 6 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 12740 15 0 defined $datetime_info{'era'} and $datetime_info{'era'} == 0
12755 0 0 defined $datetime_info{'era'} and $datetime_info{'era'} == 0 and defined $datetime{'year'}
718 2917 15 9823 defined $datetime{'year'} and defined $datetime{'month'}
2932 3 9820 defined $datetime{'year'} and defined $datetime{'month'} and defined $datetime{'day'}
776 0 0 12685 defined $dt and ref $dt
0 0 12685 defined $dt and ref $dt and $dt->isa('DateTime')

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
341 17 96 0 $args{'time_zone'} ||= 'DateTime::TimeZone'->new('name', 'floating')
482 1 45 68 ref $on_error eq 'CODE' or $on_error eq 'croak'
46 67 1 ref $on_error eq 'CODE' or $on_error eq 'croak' or $on_error eq 'undef'
524 1 111 2 ref $incomplete eq 'CODE' or $incomplete eq '1'
112 1 1 ref $incomplete eq 'CODE' or $incomplete eq '1' or $incomplete eq 'incomplete'
607 15 15 66922 $command eq 'Q' or $command eq 'q'
9847 15 57060 $command eq 'M' or $command eq 'L'
2197 15 45004 $command eq 'E' or $command eq 'c'
2212 11 44993 $command eq 'E' or $command eq 'c' or $command eq 'e'
4633 0 0 $command eq 'z' || $command eq 'v' || $command eq 'V'
2316 0 0 $command eq 'z' or $command eq 'v'
2316 0 0 $command eq 'z' or $command eq 'v' or $command eq 'V'
662 0 1 2316 not defined $ZONEMAP{$capture} or $ZONEMAP{$capture} eq 'Ambiguous'
734 0 0 1 $@ or ref $dt ne 'DateTime::Incomplete'
746 3 0 12751 $@ or ref $dt ne 'DateTime'