Condition Coverage

blib/lib/Date/EzDate2.pm
Criterion Covered Total %
condition 67 95 70.5


and 3 conditions

line !l l&&!r l&&r condition
341 1 0 23 defined $time and not ref $time
1 0 23 defined $time and not ref $time and $time =~ /\S/s
873 0 0 16 defined $val and $val =~ /^\d+$/s
0 0 16 defined $val and $val =~ /^\d+$/s and $val > 0
1042 1 0 22 length $val and not defined $set{'hour'}
1252 23 0 0 not $opts{'skipjustdigits'} and $str =~ /^\d+$/
1483 7 1199 62 not ref $key and $key =~ /[\{\%]/
1206 0 62 not ref $key and $key =~ /[\{\%]/ and not $key =~ /$pcode/o

or 2 conditions

line l !l condition
1423 30 0 $length ||= 2

or 3 conditions

line l !l&&r !l&&!r condition
334 24 0 0 $Date::EzDate::default_time_zone || 'DateTime::TimeZone'->new('name', 'local')->name
431 15 3 46 $key eq 'month' or $key eq 'monthnum'
18 1 45 $key eq 'month' or $key eq 'monthnum' or $key eq 'monthlong'
4 2 43 $key eq 'month' or $key eq 'monthnum' or $key eq 'monthlong' or $key eq 'monthshort'
0 1 42 $key eq 'weekday' or $key eq 'weekdaynum'
1 3 39 $key eq 'weekday' or $key eq 'weekdaynum' or $key eq 'weekdayshort'
4 2 37 $key eq 'weekday' or $key eq 'weekdaynum' or $key eq 'weekdayshort' or $key eq 'weekdaylong'
2 1 34 $key eq 'yearday' or $key eq 'yearday3d'
2 1 31 $key eq 'hour' or $key eq 'hour2d'
2 1 28 $key eq 'min' or $key eq 'min2d'
2 1 25 $key eq 'sec' or $key eq 'sec2d'
16 2 7 $key eq 'ampm' or $key eq 'ampmlc'
18 2 5 $key eq 'ampm' or $key eq 'ampmlc' or $key eq 'ampmuc'
553 5 15 0 $val eq 'am' or $val eq 'pm'
956 0 0 0 $val eq 'today' or $val eq 'now'
1092 0 117 0 $set->{'time_zone'} || $old->time_zone
1492 124 150 206 $el =~ s/\{([^\}]+)\}/$1/ or $el =~ /$pcode/o
1522 0 0 1199 $key eq 'dt' or $key eq 'datetime'
1580 0 16 814 $key eq 'month' or $key eq 'monthlong'
1602 0 0 599 $key eq 'epoch' or $key eq 'epochsec'
1688 15 30 122 $key eq 'ampm' or $key eq 'ampmlc'
1699 0 2 75 $dt->hour == 0 or $dt->hour == 12
1711 17 0 0 $key eq 'clocktime' or $key eq 'clocktimestrict'