Condition Coverage

blib/lib/Time/Piece.pm
Criterion Covered Total %
condition 33 52 63.4


and 3 conditions

line !l l&&!r l&&r condition
75 51 1 8 &blessed($_[1]) and $_[1]->isa('Time::Piece')
87 2 0 1 ref $class and $class->isa('Time::Piece')
603 1 0 3 ref $_[0] and $_[0]->isa('Time::Piece')
613 1 0 3 ref $_[0] and $_[0]->isa('Time::Piece')
623 1 0 4 ref $_[0] and $_[0]->isa('Time::Piece')
632 1 0 4 ref $_[0] and $_[0]->isa('Time::Piece')
657 0 0 3 &blessed($rhs) and $rhs->isa('Time::Piece')
682 1 0 1 &blessed($rhs) and $rhs->isa('Time::Piece')
703 3 0 5 &blessed($rhs) and $rhs->isa('Time::Piece')
727 1 2 2 $final_month < 0 and $final_month % 12 == 0

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
100 4 7 0 ref $class || $class
105 0 0 0 ref $proto || $proto
124 20 56 0 &blessed($class) || $class
460 1 2 3 $year % 4 == 0 && !($year % 100 == 0) || $year % 400 == 0
595 17 3 0 $LOCALE || &_default_locale()
724 1 4 2 $final_month > 11 or $final_month < 0