Branch Coverage

blib/lib/DateTime/Event/Sunrise.pm
Criterion Covered Total %
branch 89 116 76.7


line true false branch
34 1 722 if (@_ % 2 != 0)
38 1 0 if (exists $args{'iteration'} and exists $args{'precise'})
60 0 721 unless (exists $args{'precise'})
91 119 123 if $_[0]->is_infinite
95 119 7 if $_[0]->is_infinite
122 125 129 if $_[0]->is_infinite
126 125 7 if $_[0]->is_infinite
156 1 584 unless ($dt->isa('DateTime'))
188 1 584 unless ($dt->isa('DateTime'))
220 1 1 unless ($dt->isa('DateTime'))
254 1 180 unless ($dt->isa('DateTime'))
284 1 180 unless ($dt->isa('DateTime'))
314 1 180 unless ($dt->isa('DateTime'))
344 1 123 unless $dt->isa('DateTime')
347 120 3 if $tmp_rise > $dt
353 3 0 if $tmp_rise > $dt
381 1 7 unless $dt->isa('DateTime')
384 0 7 if $tmp_rise < $dt
390 7 0 if $tmp_rise < $dt
418 1 129 unless ref $dt eq 'DateTime'
421 126 3 if $tmp_set > $dt
427 3 0 if $tmp_set > $dt
455 1 7 unless $dt->isa('DateTime')
458 0 7 if $tmp_set < $dt
464 5 2 if $tmp_set < $dt
508 1997 0 defined $self->{'precise'} ? :
509 1997 0 defined $self->{'trace'} ? :
510 1457 540 unless (defined $silent)
511 1457 0 defined $self->{'silent'} ? :
515 1748 249 if (not $precise) { }
516 0 1748 if ($trace)
550 272 1476 unless $tz->is_floating
551 272 1476 unless $tz->is_floating
573 122 127 if ($want_sunrise)
574 0 122 if ($trace)
599 0 365 if ($rise_season != 0)
604 122 243 if (equal($h1_utc, $h2_utc, 5))
617 120 2 unless $tz->is_floating
620 127 122 if ($want_sunset)
621 0 127 if ($trace)
644 0 381 if ($set_season != 0)
649 127 254 if (equal($h3_utc, $h4_utc, 5))
663 125 2 unless $tz->is_floating
701 0 2494 if ($trace)
720 0 2494 if ($trace)
728 775 1719 if ($upper_limb)
738 0 2494 if ($trace)
746 238 2256 if ($cost >= 1) { }
536 1720 elsif ($cost <= -1) { }
747 8 230 unless ($silent)
754 16 520 unless ($silent)
763 0 1720 if ($trace)
772 0 2494 if ($trace)
858 1404 1090 if ($True_solar_longitude >= 360)
888 0 2494 if ($trace)
1109 0 0 if ($is_lmt) { }
1138 0 0 if ($dur < 0)
1155 0 0 if ($angle < 0)