Condition Coverage

blib/lib/Time/Piece.pm
Criterion Covered Total %
condition 39 52 75.0


and 3 conditions

line !l l&&!r l&&r condition
75 65 4 8 &blessed($_[1]) and $_[1]->isa('Time::Piece')
87 2 0 1 ref $class and $class->isa('Time::Piece')
604 1 0 4 ref $_[0] and $_[0]->isa('Time::Piece')
614 1 0 3 ref $_[0] and $_[0]->isa('Time::Piece')
624 1 0 4 ref $_[0] and $_[0]->isa('Time::Piece')
633 1 0 4 ref $_[0] and $_[0]->isa('Time::Piece')
658 0 0 5 &blessed($rhs) and $rhs->isa('Time::Piece')
683 1 1 1 &blessed($rhs) and $rhs->isa('Time::Piece')
704 3 0 19 &blessed($rhs) and $rhs->isa('Time::Piece')
728 2 2 2 $final_month < 0 and $final_month % 12 == 0

or 2 conditions

line l !l condition
809 6 0 $locales->{'PM'} ||= ''
810 6 0 $locales->{'AM'} ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
100 4 9 0 ref $class || $class
105 1 2 1 ref $proto || $proto
124 122 69 0 &blessed($class) || $class
461 1 2 3 $year % 4 == 0 && !($year % 100 == 0) || $year % 400 == 0
596 71 3 0 $LOCALE || &_default_locale()
725 2 4 28 $final_month > 11 or $final_month < 0