Condition Coverage

blib/lib/Date/Object.pm
Criterion Covered Total %
condition 103 314 32.8


and 3 conditions

line !l l&&!r l&&r condition
43 913 0 0 not defined &Object and @Date::Object::ISA > 1
49 913 0 0 ref $this and UNIVERSAL::isa($this, $class)
55 0 0 913 ref $ret_this and UNIVERSAL::isa($ret_this, $class)
57 0 0 913 $Date::Object::CLASS_HPLOO{'ATTR'} and UNIVERSAL::isa($this, 'HASH')
73 0 0 0 $sub_is_new_hploo and $prev_pack
0 0 0 $sub_is_new_hploo and $prev_pack and !ref($_[0]) && $_[0] ne $prev_pack && !UNIVERSAL::isa($_[0], $prev_pack) || ref $_[0] && !UNIVERSAL::isa($_[0], $prev_pack)
77 0 0 0 $sub0 ne $isa_sub and not ref $_[0]
0 0 0 $sub0 ne $isa_sub and not ref $_[0] and $isa_sub =~ /^(.*?(?:::)?$sub_name)\::$sub_name$/
79 0 0 0 $sub0 eq $isa_sub and UNIVERSAL::isa($_[0], $pack)
89 0 0 0 $isa_sub and defined &$isa_sub
0 0 0 $isa_sub and defined &$isa_sub and $sub0 ne $isa_sub
170 26 0 0 $type eq 'any' and $type0 =~ /^((?:ref\s*)?(?:array|hash) )?(\w+(?:(?:::|\.)\w+)*)$/
349 26 26 861 $#_ == 0 and ref $_[0] eq 'ARRAY'
356 21 0 10 ref $_[0] and UNIVERSAL::isa($_[0], 'Date::Object')
19 1 1 length $_[0] >= 14 and $_[0] =~ /^\d+$/
804 810 63 5 $mon == 2 and $day > 28
844 648 45 185 $year_bisexto == 1 and $mon > 2

or 2 conditions

line l !l condition
98 0 0 $only_stak || {}
203 23738 0 $_[5] || scalar caller
330 19 0 ref $this || 'Date::Object'
331 30 0 ref $this || 'Date::Object'
345 913 0 ref $this || 'Date::Object'
400 0 839 ref $this || 'Date::Object'
408 0 8 ref $this || 'Date::Object'
418 0 13 ref $this || 'Date::Object'
428 0 1 ref $this || 'Date::Object'
449 1 0 ref $this || 'Date::Object'
457 23 0 ref $this || 'Date::Object'
468 2 0 ref $this || 'Date::Object'
480 899 0 ref $this || 'Date::Object'
486 0 891 $this->zone || 0
509 4 0 ref $this || 'Date::Object'
529 2 0 ref $this || 'Date::Object'
554 8 878 ref $this || 'Date::Object'
557 12 874 $zone ||= 0
566 10 8 ref $this || 'Date::Object'
581 904 0 ref $this || 'Date::Object'
585 13 0 ref $this || 'Date::Object'
589 2 11 $sign ||= '+'
598 1819 0 ref $this || 'Date::Object'
600 0 0 ref $this || 'Date::Object'
601 0 0 ref $this || 'Date::Object'
603 0 0 ref $this || 'Date::Object'
604 0 0 ref $this || 'Date::Object'
605 0 0 ref $this || 'Date::Object'
606 0 0 ref $this || 'Date::Object'
607 0 0 ref $this || 'Date::Object'
608 0 0 ref $this || 'Date::Object'
610 5 0 ref $this || 'Date::Object'
611 5 0 ref $this || 'Date::Object'
612 5 0 ref $this || 'Date::Object'
613 3 0 ref $this || 'Date::Object'
614 6 0 ref $this || 'Date::Object'
615 6 0 ref $this || 'Date::Object'
616 3 0 ref $this || 'Date::Object'
620 7 0 ref $this || 'Date::Object'
632 0 0 ref $this || 'Date::Object'
635 0 0 $secs ||= 1
642 0 0 ref $this || 'Date::Object'
645 0 0 $mins ||= 1
652 0 0 ref $this || 'Date::Object'
655 0 0 $hours ||= 1
662 1 0 ref $this || 'Date::Object'
665 1 0 $days ||= 1
672 0 0 ref $this || 'Date::Object'
675 0 0 $weeks ||= 1
681 3 0 ref $this || 'Date::Object'
684 2 1 $months ||= 1
702 1 0 ref $this || 'Date::Object'
705 1 0 $months ||= 1
723 2 0 ref $this || 'Date::Object'
726 2 0 $years ||= 1
730 0 0 ref $this || 'Date::Object'
0 0 $n ||= 1
731 0 0 ref $this || 'Date::Object'
0 0 $n ||= 1
732 0 0 ref $this || 'Date::Object'
0 0 $n ||= 1
733 1 0 ref $this || 'Date::Object'
0 1 $n ||= 1
734 0 0 ref $this || 'Date::Object'
0 0 $n ||= 1
735 1 0 ref $this || 'Date::Object'
1 0 $n ||= 1
739 1800 0 ref $this || 'Date::Object'
748 20 0 ref $this || 'Date::Object'
757 0 1820 ref $this || 'Date::Object'
783 878 0 ref $this || 'Date::Object'
859 881 4792 ref $this || 'Date::Object'
907 30529 0 ref $this || 'Date::Object'
922 6 0 ref $this || 'Date::Object'
933 0 0 ref $this || 'Date::Object'
942 6 0 ref $this || 'Date::Object'
951 0 0 ref $this || 'Date::Object'
960 0 0 ref $this || 'Date::Object'
969 0 0 ref $this || 'Date::Object'
978 0 0 ref $this || 'Date::Object'
985 0 0 ref $this || 'Date::Object'
986 0 0 ref $this || 'Date::Object'
987 2 0 ref $this || 'Date::Object'
988 0 0 ref $this || 'Date::Object'
989 0 0 ref $this || 'Date::Object'
990 0 0 ref $this || 'Date::Object'
991 0 0 ref $this || 'Date::Object'
993 0 0 ref $this || 'Date::Object'
994 0 0 ref $this || 'Date::Object'
995 2 0 ref $this || 'Date::Object'
996 0 0 ref $this || 'Date::Object'
997 0 0 ref $this || 'Date::Object'
998 0 0 ref $this || 'Date::Object'
999 0 0 ref $this || 'Date::Object'
1003 27 0 ref $this || 'Date::Object'
1011 5 0 ref $this || 'Date::Object'
1020 0 0 ref $this || 'Date::Object'
1026 0 0 ref $this || 'Date::Object'
1030 0 0 ref $this || 'Date::Object'
1038 0 0 ref $this || 'Date::Object'
1046 0 0 ref $this || 'Date::Object'
1054 1 0 ref $this || 'Date::Object'
1062 1 0 ref $this || 'Date::Object'

or 3 conditions

line l !l&&r !l&&!r condition
73 0 0 0 !ref($_[0]) && $_[0] ne $prev_pack && !UNIVERSAL::isa($_[0], $prev_pack) || ref $_[0] && !UNIVERSAL::isa($_[0], $prev_pack)
118 0 0 0 $look_deep or not defined &$isa_sub
120 0 0 0 $isa_i eq $pack or $isa_i eq 'Class::HPLOO::Base'
354 30 1 872 $#_ == 0 or $#_ == 1
486 8 0 891 $zone ||= $this->zone || 0
487 4 895 0 $time ||= $this->time
742 5 873 0 $$this{'time'} || CORE::time
922 878 0 $time ||= $$this{'time'} || CORE::time
751 20 0 0 $$this{'time'} || CORE::time
0 20 0 $time ||= $$this{'time'} || CORE::time
799 0 0 878 not $year or $year eq '*'
0 0 878 not $year or $year eq '*' or $year < $year_0
804 0 0 878 not $mon or $mon eq '*'
0 0 878 $mon < 1 or $mon > 12
0 0 878 not $day or $day eq '*'
0 0 878 $day < 1 or $day > 31
814 0 0 867 $hour < 0 or $hour > 24
819 0 0 867 $min < 0 or $min > 60
824 0 0 860 $sec < 0 or $sec > 60