Condition Coverage

blib/lib/Astro/Coord/ECI.pm
Criterion Covered Total %
condition 70 137 51.0


and 3 conditions

line !l l&&!r l&&r condition
187 0 0 1205 ref $B and $B->represents(__PACKAGE__)
0 0 1205 ref $B and $B->represents(__PACKAGE__) and ref $C
0 0 1205 ref $B and $B->represents(__PACKAGE__) and ref $C and $C->represents(__PACKAGE__)
1028 1464 2919 3 @args and embodies($args[0], __PACKAGE__)
1421 1840 0 48199 $self->{'_ECI_cache'}{'fixed'}{'geodetic'} and not $elps
1981 0 1043 1042 defined $args[0] and $args[0] =~ / [^0-9] /msx
2026 0 0 1043 defined $precision and $precision > 0
2417 29 137 1498 defined $want and $want != $above
2568 894 566 1 $sta = $self->get("station") and $sta->get("inertial")
2812 0 502 1477 ref $self and $self->{'specified'}
502 1470 7 ref $self and $self->{'specified'} and $action & 1
2858 0 0 182 &looks_like_number($value) and $value >= "-1.5707963267949"
0 0 182 &looks_like_number($value) and $value >= "-1.5707963267949" and $value <= "1.5707963267949"
2899 0 0 1 &looks_like_number($value) and $value >= "-1.5707963267949"
0 1 0 &looks_like_number($value) and $value >= "-1.5707963267949" and $value <= "1.5707963267949"
3017 124 175182 60991 defined $self->{'universal'} and $time == $self->{'universal'}
3212 0 0 7139 -&PIOVER2 <= $_[1] and $_[1] <= &PIOVER2
3226 0 0 4220 -&TWOPI <= $_[1] and $_[1] <= &TWOPI
3240 0 0 2919 0 <= $_[1] and $_[1] <= &TWOPI
3267 0 0 74634 @sph_data and not @sph_data % 3
3366 0 0 50182 @cart_data and not @cart_data % 3

or 2 conditions

line l !l condition
640 141872 0 $self->{'_ECI_cache'} ||= {}
723 91717 0 $self->{'_ECI_cache'} ||= {}
888 17 1697 $self->{'_ECI_cache'}{'inertial'}{'ecliptic'} ||= [_convert_cartesian_to_spherical_x($self->ecliptic_cartesian)]
1060 0 1464 $self->{'_ECI_cache'}{'inertial'}{'equatorial'} ||= [_convert_cartesian_to_spherical($self->eci)]
1758 0 0 $self->{'_ECI_cache'}{'inertial'}{'heliocentric_ecliptic'} ||= [_convert_cartesian_to_spherical_x($self->heliocentric_ecliptic_cartesian)]
2225 210 1423 $angle ||= 0
2233 879 754 $elev < $angle || 0
2241 753 882 $elev < $angle || 0
2252 13004 12927 $elev < $angle || 0
2898 0 0 $dflt{$name} || 0

or 3 conditions

line l !l&&r !l&&!r condition
136 0 182 0 ref $class || $class
566 89911 0 0 $self->{'universal'} || croak("Error - Universal time of object has not been set.\n")
144695 89911 0 $self->{'dynamical'} ||= $self->{'universal'} + dynamical_delta($self->{'universal'} || croak("Error - Universal time of object has not been set.\n"))
734 74637 18848 0 @args == 3 or @args == 6
1080 0 1 0 $station ||= $self->get("station")
1404 0 0 52148 @args == 1 || @args == 4
1981 0 1042 1043 @args > 1 or defined $args[0] and $args[0] =~ / [^0-9] /msx
2144 0 0 0 $begin_angle < "3.14159265358979" or $end_angle >= "3.14159265358979"
2565 1461 0 0 $start ||= $self->dynamical
2772 73028 0 113 ref $_[0] || $_[0]
3049 0 12 0 $tplt || $self->__horizon_name_tplt
3061 0 0 0 $tplt || $self->__horizon_extreme_tod_name_tplt
3076 0 14 0 $tplt || $self->__transit_name_tplt
3089 56 0 0 $self->get('name') || $self->get('id') || ($self->{'_name'} ||= $self->__object_name_from_class_name)
3095 5 0 0 ref $self || $self
3102 15 5 0 $self->{'_name_re'} ||= do { my $re = $self->__object_name_from_class_name; qr/ \A \Q$re\E \z /imsx }
3375 50181 0 1 $cart_pos[0] || $cart_pos[1]
3540 88229 3 0 $self->{'equinox_dynamical'} ||= $dyn