Condition Coverage

blib/lib/Time/Piece.pm
Criterion Covered Total %
condition 63 93 67.7


and 3 conditions

line !l l&&!r l&&r condition
84 186 4 9 builtin::blessed($_[1]) and $_[1]->isa("Time::Piece")
96 2 0 1 ref $class and $class->isa(__PACKAGE__)
577 179 54 4 @_ >= 2 and builtin::blessed($_[1])
233 0 4 @_ >= 2 and builtin::blessed($_[1]) and $_[1]->isa("Time::Piece")
0 232 1 @_ and builtin::blessed($_[0])
232 0 1 @_ and builtin::blessed($_[0]) and $_[0]->isa("Time::Piece")
178 0 54 @_ >= 2 and ref $_[1] eq "HASH"
0 174 4 @_ and ref $_[0] eq "HASH"
604 3 1 12 builtin::blessed($opts->{'defaults'}) and $opts->{'defaults'}->isa("Time::Piece")
616 0 9 5 defined $defaults->[5] and $defaults->[5] >= 1000
632 33 0 25 exists $opts->{'islocal'} and $opts->{'islocal'}
643 1 0 4 ref $_[0] and $_[0]->isa(__PACKAGE__)
653 1 0 3 ref $_[0] and $_[0]->isa(__PACKAGE__)
663 0 0 2 ref $_[0] and $_[0]->isa(__PACKAGE__)
673 0 0 2 ref $_[0] and $_[0]->isa(__PACKAGE__)
683 1 0 4 ref $_[0] and $_[0]->isa(__PACKAGE__)
692 1 0 4 ref $_[0] and $_[0]->isa(__PACKAGE__)
717 0 0 5 builtin::blessed($rhs) and $rhs->isa("Time::Piece")
745 10 1 5 builtin::blessed($rhs) and $rhs->isa("Time::Piece")
766 3 0 19 builtin::blessed($rhs) and $rhs->isa("Time::Piece")
798 8 4 2 $final_month < 0 and $final_month % 12 == 0
853 162 42 196 $can_cache and exists $_format_cache->{$format}
890 0 0 2 $locales->{'PM'} && $locales->{'AM'}
898 0 0 2 $locales->{'pm'} && $locales->{'am'}

or 3 conditions

line l !l&&r !l&&!r condition
109 4 7 0 ref $class || $class
115 216 275 0 builtin::blessed($class) || $class
452 1 2 3 $year % 4 == 0 && !($year % 100 == 0) || $year % 400 == 0
598 230 7 0 $LOCALE || &_default_locale()
795 8 6 38 $final_month > 11 or $final_month < 0
890 0 0 2 not $locales->{'PM'} && $locales->{'AM'} or $locales->{'PM'} eq $locales->{'AM'}
898 0 0 2 not $locales->{'pm'} && $locales->{'am'} or $locales->{'pm'} eq $locales->{'am'}