File Coverage

inc/Astro/Coord/ECI/TLE/Period.pm
Criterion Covered Total %
statement 21 21 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 2 2 100.0
total 30 30 100.0


line stmt bran cond sub pod time code
1             package Astro::Coord::ECI::TLE::Period;
2              
3 1     1   1805 use 5.006002;
  1         10  
4              
5 1     1   5 use strict;
  1         3  
  1         33  
6 1     1   6 use warnings;
  1         2  
  1         40  
7              
8 1     1   1467 use Astro::Coord::ECI::TLE;
  1         6  
  1         81  
9 1     1   8 use Carp;
  1         2  
  1         206  
10              
11             our @ISA = qw{ Astro::Coord::ECI::TLE };
12             our $VERSION = '0.129';
13              
14             my $pkg = __PACKAGE__;
15              
16             sub new {
17 4     4 1 976 my ( $class, %args ) = @_;
18 4         19 my $self = $class->SUPER::new();
19 4         13 $self->{$pkg}{period} = delete $args{period};
20 4         16 $self->set( %args );
21 4         37 return $self;
22             }
23              
24             sub period {
25 4     4 1 7 my ( $self ) = @_;
26 4         10 return $self->{$pkg}{period};
27             }
28              
29             1;
30              
31             __END__