lib/Sisimai/DateTime.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 50 | 74 | 67.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
299 | 1 | 1 | 2947 | $1 < 24 and $2 < 60 |
2 | 1 | 2946 | $1 < 24 and $2 < 60 and $3 < 60 | |
305 | 0 | 0 | 1 | $1 < 24 and $2 < 60 |
340 | 0 | 0 | 18 | $4 < 24 and $5 < 60 |
0 | 0 | 18 | $4 < 24 and $5 < 60 and $6 < 60 | |
360 | 3 | 2955 | 11 | $v->{'T'} and $afternoon1 |
369 | 36 | 2931 | 2 | defined $v->{'Y'} and $v->{'Y'} < 200 |
376 | 2933 | 0 | 36 | exists $altervalue->{'Y'} and not $v->{'Y'} |
463 | 8 | 37 | 0 | ref $argv1 and ref $argv1 ne "Time::Seconds" |
line | l | !l | condition |
---|---|---|---|
160 | 59 | 24 | shift() || (return 0) |
188 | 7 | 0 | $2 // "d" |
193 | 0 | 5 | $1 // 1 |
194 | 3 | 2 | $mathematicalconstant->{$2} // 0 |
195 | 3 | 2 | $3 // "d" |
212 | 18 | 0 | shift() // 0 |
227 | 2 | 0 | shift() // 0 |
244 | 2969 | 0 | shift() || (return undef) |
324 | 62 | 0 | 'Sisimai::DateTime'->abbr2tz($p) || '+0000' |
368 | 2895 | 74 | $v->{'a'} ||= "Thu" |
414 | 87 | 0 | shift() || (return undef) |
427 | 2988 | 26 | shift() || (return undef) |
460 | 45 | 1 | shift() // (return "+0000") |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
264 | 2940 | 9 | 3958 | $p =~ /\A([0-2]\d):([0-5]\d):([0-5]\d)\z/ or $p =~ /\A(\d{1,2})[-:](\d{1,2})[-:](\d{1,2})\z/ |
320 | 0 | 2870 | 0 | $v->{'z'} ||= $p |
324 | 979 | 62 | 0 | $v->{'z'} ||= 'Sisimai::DateTime'->abbr2tz($p) || '+0000' |
373 | 2932 | 37 | 0 | $v->{'z'} ||= "Sisimai::DateTime"->second2tz("Time::Piece"->new->tzoffset) |
380 | 0 | 0 | 0 | $v->{'Y'} ||= 1900 + $altervalue->{'Y'} |
384 | 0 | 36 | 0 | $v->{'Y'} ||= 2000 + $altervalue->{'Y'} |
395 | 1 | 1 | 2962 | $v->{'Y'} < 1902 or $v->{'Y'} > 2037 |