Condition Coverage

blib/lib/JE/Object/Date.pm
Criterion Covered Total %
condition 36 65 55.3


and 2 conditions

line l !l condition
331 1046 6 $$_ != $$_ and return sin(9**9**9)
343 858 12 $$_ != $$_ and return sin(9**9**9)
356 626 19 $$_ != $$_ and return sin(9**9**9)
363 654 37 $time != $time and return sin(9**9**9)

and 3 conditions

line !l l&&!r l&&r condition
65 59 370 0 @_ and defined blessed($_[0]) ? (my $prim = $_[0]->to_primitive)->isa('JE::String') : !looks_like_number($_[0])
69 0 372 0 defined blessed($_) && $_->can('to_number') && ($_ = $_->to_number->value)
73 0 120 0 defined blessed($date) && $date->can('to_number') && ($date = $date->to_number->value)
79 665 0 79 defined blessed($_) && $_->can('to_number')
83 6 148 32 $year >= 0 and int $year <= 99
97 0 0 362 defined blessed($_[0]) && $_[0]->can('to_number')
311 0 0 1004 $_[0] == $_[0] and $_[0] + 1 != $_[0]
318 8 6 217 $_[0] == $_[0] and $_[0] + 1 != $_[0]
467 5 11 28 $year >= 0 and int $year <= 99
1470 0 0 0 $inty >= 0 and $inty <= 99

or 3 conditions

line l !l&&r !l&&!r condition
60 615 0 0 $global->prototype_for('Date') || $global->prop('Date')->prop('prototype')
170 233 64 0 $Cheat{join $;, (), @_[4, 5]} ||= do { my $month = ($_[4] + 10) % 12; my $year = $_[5] - int($month / 10); 365 * $year + floor($year / 4) - floor($year / 100) + floor($year / 400) + int(($month * 306 + 5) / 10) - 719469 }
190 1664 0 643 $_[0] % 4 || !($_[0] % 100) && $_[0] % 400
1151 0 0 5 $s != $s or $ms != $ms
1194 0 0 5 $s != $s or $ms != $ms
1241 0 0 6 $m != $m or $s != $s
0 0 6 $m != $m or $s != $s or $ms != $ms
1288 0 0 6 $m != $m or $s != $s
0 0 6 $m != $m or $s != $s or $ms != $ms