Condition Coverage

blib/lib/DateTime/Format/CLDR.pm
Criterion Covered Total %
condition 72 101 71.2


and 3 conditions

line !l l&&!r l&&r condition
411 7 0 114 ref $time_zone and $time_zone->isa('DateTime::TimeZone')
441 106 14 0 ref $locale and $locale->isa('DateTime::Locale::Base') || $locale->isa('DateTime::Locale::FromData')
608 67552 9210 750 $command eq 'y' and $index == 2
47565 11 5 $command eq 'e' and $index == 1
0 2316 2317 $command eq 'z' || $command eq 'v' || $command eq 'V' and $index == 1
690 7008 0 5868 defined $datetime_info{'hour12'} and defined $datetime_info{'ampm'}
694 6 0 5862 $datetime_info{'ampm'} == 2 and $datetime{'hour'} < 12
705 1 0 2 $datetime{'minute'} == 0 and $datetime{'second'} == 0
1 0 2 $datetime{'minute'} == 0 and $datetime{'second'} == 0 and $datetime{'nanosecond'} == 0
716 12860 15 0 defined $datetime_info{'era'} and $datetime_info{'era'} == 0
12875 0 0 defined $datetime_info{'era'} and $datetime_info{'era'} == 0 and defined $datetime{'year'}
723 2917 15 9943 defined $datetime{'year'} and defined $datetime{'month'}
2932 3 9940 defined $datetime{'year'} and defined $datetime{'month'} and defined $datetime{'day'}
781 0 0 12805 defined $dt and ref $dt
0 0 12805 defined $dt and ref $dt and $dt->isa('DateTime')

or 2 conditions

line l !l condition
731 0 2933 $datetime{'day'} ||= 1
732 37 2896 $datetime{'month'} ||= 1
733 16 2917 $datetime{'year'} ||= 1
838 1 0 $locale ||= 'en'

or 3 conditions

line l !l&&r !l&&!r condition
342 17 101 0 $args{'time_zone'} ||= 'DateTime::TimeZone'->new('name', 'floating')
441 0 14 0 $locale->isa('DateTime::Locale::Base') || $locale->isa('DateTime::Locale::FromData')
483 1 50 68 ref $on_error eq 'CODE' or $on_error eq 'croak'
51 67 1 ref $on_error eq 'CODE' or $on_error eq 'croak' or $on_error eq 'undef'
525 1 116 2 ref $incomplete eq 'CODE' or $incomplete eq '1'
117 1 1 ref $incomplete eq 'CODE' or $incomplete eq '1' or $incomplete eq 'incomplete'
608 15 15 67522 $command eq 'Q' or $command eq 'q'
9967 15 57540 $command eq 'M' or $command eq 'L'
2197 15 45364 $command eq 'E' or $command eq 'c'
2212 11 45353 $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'
663 0 1 2268 not defined $ZONEMAP{$capture} or $ZONEMAP{$capture} eq 'Ambiguous'
739 0 0 1 $@ or ref $dt ne 'DateTime::Incomplete'
751 3 0 12871 $@ or ref $dt ne 'DateTime'