Branch Coverage

blib/lib/Calendar/Functions.pm
Criterion Covered Total %
branch 75 78 96.1


line true false branch
132 575 6 if ($day and $mon and $year)
133 220 355 if ($dt) { }
171 184 elsif ($di) { }
138 2 182 if fail_range($year)
161 934 1899 if ($dt) { }
921 978 elsif ($di) { }
193 6 6 unless defined $d1 or defined $d2
194 714 988 if defined $d1 and not defined $d2
195 6 982 unless defined $d1
198 320 662 if ($dt) { }
312 350 elsif ($di) { }
200 20 26 $d1 > $d2 ? :
304 46 $d1 < $d2 ? :
214 506 1042 if ($dt) { }
506 536 elsif ($di) { }
237 2 1699 unless $day and $mon and $year
239 228 1471 unless ($dotw)
255 3 4 if ($tp and $fmt =~ /\bEPOCH\b/ and $year >= $EpoYear and $year <= $MaxYear)
258 3 0 if $t
296 8 41 if ($form1 =~ /^YYYY/) { }
3 38 elsif ($form1 =~ /^MONTH/) { }
5 33 elsif ($form1 =~ /^MM/) { }
3 30 elsif ($form1 =~ /^DDEXT/) { }
5 25 elsif ($form1 =~ /^DD/) { }
3 22 elsif ($form1 =~ /^DAY/) { }
335 2 5 unless int $day and int $mon and int $year
338 1 4 if $form2 =~ /DAY/ and not $dotw
356 74 1555 if $_[0] == 1 or $_[0] == 21 or $_[0] == 31
357 115 1440 if $_[0] == 2 or $_[0] == 22
358 143 1297 if $_[0] == 3 or $_[0] == 23
370 9 11 if $_[0] =~ /\d/
373 10 34 if $_[0] =~ /$dotw[$inx]/i
387 13 16 if $_[0] =~ /\d/
390 15 97 if $_[0] =~ /$months[$inx]/i
404 3 199 unless $_[0]
405 10 189 if $dt or $di
406 4 185 if $_[0] < $MinYear or $_[0] > $MaxYear
411 7 0 if $dt
412 7 0 if $di