Condition Coverage

blib/lib/Date/Formatter.pm
Criterion Covered Total %
condition 38 51 74.5


and 3 conditions

line !l l&&!r l&&r condition
68 1 1 2 $date{'month'} =~ /^\d+$/ and $date{'month'} >= 1
128 19 0 1 exists $_date{'years'} and $_date{'years'}
131 19 0 1 exists $_date{'leapyears'} and $_date{'leapyears'}
134 19 0 1 exists $_date{'months'} and $_date{'months'}
137 19 0 1 exists $_date{'weeks'} and $_date{'weeks'}
140 18 0 2 exists $_date{'days'} and $_date{'days'}
143 10 0 10 exists $_date{'hours'} and $_date{'hours'}
146 17 0 3 exists $_date{'minutes'} and $_date{'minutes'}
149 18 0 2 exists $_date{'seconds'} and $_date{'seconds'}
220 1 2 1 defined $formatter and ref $formatter eq 'CODE'
474 2 0 8 blessed $right and $right->isa('Date::Formatter')
487 2 0 3 blessed $right and $right->isa('Date::Formatter')
501 6 0 13 blessed $right and $right->isa('Date::Formatter')

or 2 conditions

line l !l condition
39 1 11 $date{'locale'} || 'en'
94 12 42 $locale ||= 'en'
154 19 1 $time ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
29 13 40 0 ref $_class || $_class
191 4 10 0 $pattern ||= qr/\(|\)/