Condition Coverage

blib/lib/Date/Calc/Object.pm
Criterion Covered Total %
condition 167 342 48.8


and 3 conditions

line !l l&&!r l&&r condition
357 0 0 5 $temp >= 1 and $temp <= Languages()
373 0 0 3 $temp >= 1 and $temp <= Languages()
396 0 0 61 defined $$self[0] and ref $$self[0] eq 'ARRAY'
0 1 60 defined $$self[0] and ref $$self[0] eq 'ARRAY' and defined $$self[0][0]
412 0 0 927 defined $$self[0] and ref $$self[0] eq 'ARRAY'
0 1 926 defined $$self[0] and ref $$self[0] eq 'ARRAY' and defined $$self[0][0]
456 0 0 1275 defined $$self[0] and ref $$self[0] eq 'ARRAY'
0 1 1274 defined $$self[0] and ref $$self[0] eq 'ARRAY' and @{$$self[0];} > 0
1 0 1274 defined $$self[0] and ref $$self[0] eq 'ARRAY' and @{$$self[0];} > 0 and defined $$self[0][0]
1 0 1274 defined $$self[0] and ref $$self[0] eq 'ARRAY' and @{$$self[0];} > 0 and defined $$self[0][0] and not ref $$self[0][0]
0 1274 0 defined $$self[0] and ref $$self[0] eq 'ARRAY' and @{$$self[0];} > 0 and defined $$self[0][0] and not ref $$self[0][0] and $$self[0][0] == 0 || $$self[0][0] == 1
0 1274 0 defined $$self[0] and ref $$self[0] eq 'ARRAY' and @{$$self[0];} > 0 and defined $$self[0][0] and not ref $$self[0][0] and $$self[0][0] == 0 || $$self[0][0] == 1 and @{$self;} == 4 || @{$self;} == 7
466 0 0 421 defined $$self[1] and not ref $$self[1]
0 0 421 defined $$self[1] and not ref $$self[1] and defined $$self[2]
0 0 421 defined $$self[1] and not ref $$self[1] and defined $$self[2] and not ref $$self[2]
0 0 421 defined $$self[1] and not ref $$self[1] and defined $$self[2] and not ref $$self[2] and defined $$self[3]
0 0 421 defined $$self[1] and not ref $$self[1] and defined $$self[2] and not ref $$self[2] and defined $$self[3] and not ref $$self[3]
474 0 0 210 defined $$self[4] and not ref $$self[4]
0 0 210 defined $$self[4] and not ref $$self[4] and defined $$self[5]
0 0 210 defined $$self[4] and not ref $$self[4] and defined $$self[5] and not ref $$self[5]
0 0 210 defined $$self[4] and not ref $$self[4] and defined $$self[5] and not ref $$self[5] and defined $$self[6]
0 0 210 defined $$self[4] and not ref $$self[4] and defined $$self[5] and not ref $$self[5] and defined $$self[6] and not ref $$self[6]
490 0 0 851 defined $$self[1] and not ref $$self[1]
0 0 851 defined $$self[1] and not ref $$self[1] and defined $$self[2]
0 0 851 defined $$self[1] and not ref $$self[1] and defined $$self[2] and not ref $$self[2]
0 0 851 defined $$self[1] and not ref $$self[1] and defined $$self[2] and not ref $$self[2] and defined $$self[3]
0 0 851 defined $$self[1] and not ref $$self[1] and defined $$self[2] and not ref $$self[2] and defined $$self[3] and not ref $$self[3]
0 3 848 defined $$self[1] and not ref $$self[1] and defined $$self[2] and not ref $$self[2] and defined $$self[3] and not ref $$self[3] and check_date(@{$self;}[1..3])
499 0 0 314 defined $$self[4] and not ref $$self[4]
0 0 314 defined $$self[4] and not ref $$self[4] and defined $$self[5]
0 0 314 defined $$self[4] and not ref $$self[4] and defined $$self[5] and not ref $$self[5]
0 0 314 defined $$self[4] and not ref $$self[4] and defined $$self[5] and not ref $$self[5] and defined $$self[6]
0 0 314 defined $$self[4] and not ref $$self[4] and defined $$self[5] and not ref $$self[5] and defined $$self[6] and not ref $$self[6]
0 0 314 defined $$self[4] and not ref $$self[4] and defined $$self[5] and not ref $$self[5] and defined $$self[6] and not ref $$self[6] and check_time(@{$self;}[4..6])
526 0 2 4 $$self[2] and $quot = int $$self[2] / 12
531 4 2 0 $$self[2] < 0 and $$self[3] > 0 || $$self[4] > 0 || $$self[5] > 0 || $$self[6] > 0
1 4 0 $$self[2] > 0 and $$self[3] < 0 || $$self[4] < 0 || $$self[5] < 0 || $$self[6] < 0
572 507 2 29 @_ == 1 and ref $_[0] eq 'ARRAY'
574 0 538 0 defined $list and @$list == 0 || @$list == 1 || @$list == 3 || @$list == 4 || @$list == 6 || @$list == 7
614 0 0 2 @_ == 1 and ref $_[0]
635 42 0 0 @_ == 1 and ref $_[0] eq 'ARRAY'
637 0 42 0 defined $list and @$list == 0 || @$list == 1 || @$list == 3 || @$list == 4 || @$list == 6 || @$list == 7
663 15 0 0 @_ == 1 and ref $_[0] eq 'ARRAY'
665 0 15 0 defined $list and @$list == 0 || @$list == 1 || @$list == 3 || @$list == 4
692 13 0 0 @_ == 1 and ref $_[0] eq 'ARRAY'
694 0 13 0 defined $list and @$list == 0 || @$list == 1 || @$list == 3 || @$list == 4 || @$list == 6 || @$list == 7
1172 0 138 4 defined $lang and $lang ne ''
1181 1 0 141 $lang >= 1 and $lang <= Languages()
1351 0 83 368 defined $this and ref($this) =~ /[^:]::[^:]/
0 28 55 defined $this and ref $this eq 'ARRAY'
0 0 28 defined $this and not ref $this
1386 0 0 207 $code <= 4 and $code >= 1
1390 122 1 0 not $val1 and $val2
123 0 0 not $val1 and $val2 and not $flag
1 100 22 $val1 and not $val2
101 22 0 $val1 and not $val2 and $flag
1396 19 98 2 $val1 and $val2
1539 0 0 40 not $ACCURATE_MODE and $NORMALIZED_MODE
1554 2 22 56 not $ACCURATE_MODE and $NORMALIZED_MODE
1570 4 2 0 not $ACCURATE_MODE and $NORMALIZED_MODE
1585 0 6 6 not $ACCURATE_MODE and $NORMALIZED_MODE
1596 12 6 0 not defined $flag and $^W
1623 0 22 100 $val1 and $val2
1721 96 4 0 not defined $flag and $^W

or 2 conditions

line l !l condition
265 9 13 $_[1] || 0
276 2 0 $_[1] || 0
287 0 0 $_[1] || 0
310 4 0 $_[0] || 0
334 7 0 $_[0] || 0
590 532 0 ref $class || $class || 'Date::Calc'
721 0 0 shift() || 0
730 0 0 $self ||= 'Date::Calc'
738 0 0 shift() || 0
747 0 0 $self ||= 'Date::Calc'
755 0 0 shift() || 0
764 0 0 $self ||= 'Date::Calc'
791 0 0 $self ||= 'Date::Calc'
818 0 0 $self ||= 'Date::Calc'
872 0 0 $self ||= 'Date::Calc'
926 1 0 $self ||= 'Date::Calc'
937 0 0 $_[0] || 0
950 0 0 $_[0] || 0
963 1 0 $_[0] || 0
986 0 0 $_[0] || 0
1012 0 0 $_[0] || 0
1038 0 0 $_[0] || 0
1380 28 0 $this || 0
1414 0 0 $$this[$item] || 0
0 0 $$self[$item] || 0
1420 6 0 $$self[$item] || 0
4 2 $$this[$item] || 0
1427 6 0 $$self[$item] || 0
4 2 $$this[$item] || 0
1447 665 442 $$self[$item] || 0
665 442 $$this[$item] || 0

or 3 conditions

line l !l&&r !l&&!r condition
456 852 422 0 $$self[0][0] == 0 || $$self[0][0] == 1
748 524 2 @{$self;} == 4 || @{$self;} == 7
531 0 0 1 $$self[3] > 0 || $$self[4] > 0 || $$self[5] > 0 || $$self[6] > 0
0 0 1 $$self[3] < 0 || $$self[4] < 0 || $$self[5] < 0 || $$self[6] < 0
574 250 172 6 @$list == 0 || @$list == 1 || @$list == 3 || @$list == 4 || @$list == 6 || @$list == 7
577 2 242 288 @$list == 1 or @$list == 4
244 172 116 @$list == 1 or @$list == 4 or @$list == 7
64 8 44 @$list == 3 or @$list == 6
637 0 5 0 @$list == 0 || @$list == 1 || @$list == 3 || @$list == 4 || @$list == 6 || @$list == 7
642 0 0 42 @$list == 1 or @$list == 4
0 5 37 @$list == 1 or @$list == 4 or @$list == 7
646 0 5 37 @$list == 3 or @$list == 6
665 1 0 0 @$list == 0 || @$list == 1 || @$list == 3 || @$list == 4
670 0 0 15 @$list == 1 or @$list == 4
694 0 0 0 @$list == 0 || @$list == 1 || @$list == 3 || @$list == 4 || @$list == 6 || @$list == 7
699 0 0 13 @$list == 1 or @$list == 4
0 0 13 @$list == 1 or @$list == 4 or @$list == 7
1116 0 0 8 $format == 2 or $format == 1
1357 43 6 6 @{$this;} == 3 or @{$this;} == 6
1386 123 119 207 $code == 6 or $code == 5
1390 0 0 123 not $val1 and $val2 and not $flag or $val1 and not $val2 and $flag
1401 93 1 146 $len1 or $len2
1405 220 0 20 $val1 or $val2
1537 40 0 80 $len1 or $len2
1568 6 0 12 $len1 or $len2
1608 98 18 1 $val1 or $val2
1621 122 0 1 $val1 or $val2
1625 45 1 54 $len1 or $len2

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
1437 125 0 0 82 $val1 xor $val2