Condition Coverage

blib/lib/Date/Calendar/Year.pm
Criterion Covered Total %
condition 50 105 47.6


and 3 conditions

line !l l&&!r l&&r condition
60 0 0 21778 $year == $yy and check_date($yy, $mm, $dd)
68 0 0 743 $year == $yy and check_date($yy, $mm, $dd)
115 0 0 23732 check_date($yy, $mm, $dd) and ($index = Date_to_Days($yy, $mm, $dd) - ${$self;}{'BASE'}) >= 0
0 0 23732 check_date($yy, $mm, $dd) and ($index = Date_to_Days($yy, $mm, $dd) - ${$self;}{'BASE'}) >= 0 and $index < ${$self;}{'DAYS'}
133 0 0 20 $index > 0 and $index < ${$self;}{'DAYS'}
0 0 20 $index > 0 and $index < ${$self;}{'DAYS'} and ($yy, $mm, $dd) = Add_Delta_Days($year, 1, 1, $index)
0 0 20 $index > 0 and $index < ${$self;}{'DAYS'} and ($yy, $mm, $dd) = Add_Delta_Days($year, 1, 1, $index) and $yy == $year
185 0 0 386 $n >= 1 and $n <= 7
194 183 0 8 $lang >= 1 and $lang <= Languages()
252 0 0 0 $temp > 0 and $temp < 13
335 0 0 10 defined wantarray and wantarray
350 0 0 0 defined wantarray and wantarray
368 0 0 0 defined wantarray and wantarray
411 0 0 0 @_ == 1 and not ref $_[0]
420 0 0 0 exists $$self{'TAGS'}{$index} and defined $$self{'TAGS'}{$index}
517 7 0 13 $full->bit_test($index) and ($min, $max) = $full->Interval_Scan_inc($index)
7 0 13 $full->bit_test($index) and ($min, $max) = $full->Interval_Scan_inc($index) and $min == $index
532 10 7 2 $loop and $index > $limit
545 12 0 12 $full->bit_test($index) and ($min, $max) = $full->Interval_Scan_dec($index)
12 0 12 $full->bit_test($index) and ($min, $max) = $full->Interval_Scan_dec($index) and $max == $index
560 9 12 2 $loop and $index < 0

or 2 conditions

line l !l condition
78 21619 2049 $flag ||= ''
94 20582 0 shift() || 0
149 8 183 shift() || 0
154 191 0 ref $class || $class || 'Date::Calendar::Year'
165 8 183 shift() || 0
184 386 0 $item || 0

or 3 conditions

line l !l&&r !l&&!r condition
38 0 0 609 $year < 1583 or $year > 2299
133 4 0 20 $index == 0 or $index > 0 and $index < ${$self;}{'DAYS'} and ($yy, $mm, $dd) = Add_Delta_Days($year, 1, 1, $index) and $yy == $year
199 1098 0 20631 $item =~ /^ ([#:]?) (\d+) \. (\d+) \.? $/x or $item =~ /^ ([#:]?) (\d+) \.? ([a-zA-Z]+) \.? $/x
1098 18631 2000 $item =~ /^ ([#:]?) (\d+) \. (\d+) \.? $/x or $item =~ /^ ([#:]?) (\d+) \.? ([a-zA-Z]+) \.? $/x or $item =~ /^ ([#:]?) (\d+) - (\d+|[a-zA-Z]+) -? $/x
6 847 1147 $item =~ m[^ ([#:]?) (\d+) / (\d+) $]x or $item =~ m[^ ([#:]?) ([a-zA-Z]+) /? (\d+) $]x
0 1147 0 $item =~ /^ ([#:]?) ([1-5]) ([a-zA-Z]+) (\d+) $/x or $item =~ m[^ ([#:]?) ([1-5]) / ([1-7]|[a-zA-Z]+) / (\d+|[a-zA-Z]+) $]x
451 0 0 20 $lower_index < 0 or $lower_index >= $days
455 0 0 20 $upper_index < 0 or $upper_index >= $days
465 0 0 20 $upper_index < 0 or $lower_index >= $days
0 0 20 $upper_index < 0 or $lower_index >= $days or $lower_index > $upper_index