Branch Coverage

blib/lib/Astro/Sunrise.pm
Criterion Covered Total %
branch 58 64 90.6


line true false branch
34 492 118 if (ref $_[0] eq 'HASH') { }
42 486 124 defined $arg{'alt'} ? :
46 1 609 unless defined $year
48 1 608 unless defined $month
50 1 607 unless defined $day
52 1 606 unless defined $lon
54 1 605 unless defined $lat
57 1 604 if $arg{'polar'} ne 'warn' and $arg{'polar'} ne 'retval'
59 2 602 if ($arg{'precise'}) { }
81 1 102 if ++$counter >= 100
97 1 102 if ++$counter >= 100
107 0 452 if ($h1 eq 'day' or $h1 eq 'night' or $h2 eq 'day' or $h2 eq 'night')
130 234 782 if ($upper_limb)
143 50 966 if ($cost >= 1) { }
112 854 elsif ($cost <= -1) { }
144 46 4 if ($polar eq 'retval')
151 104 8 if ($polar eq 'retval')
252 273 743 if ($True_solar_longitude >= 360)
457 0 908 if ($isdst)
462 0 908 if ($hour_local < 0) { }
20 888 elsif ($hour_local > 24) { }
473 24 884 if ($min >= 60)
476 0 24 if $hour >= 24
493 11 8 if (ref $_[0] eq 'HASH') { }
505 19 0 unless ($INC{'DateTime'})
507 0 19 if $@
512 8 11 defined $arg{'alt'} ? :
513 8 11 defined $arg{'offset'} ? :
514 4 15 defined $arg{'time_zone'} ? :
518 1 18 unless defined $longitude
520 1 17 unless defined $latitude
523 1 16 if $arg{'polar'} ne 'warn' and $arg{'polar'} ne 'retval'