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   1689 use 5.006002;
  1         9  
4              
5 1     1   5 use strict;
  1         11  
  1         26  
6 1     1   6 use warnings;
  1         1  
  1         34  
7              
8 1     1   1536 use Astro::Coord::ECI::TLE;
  1         6  
  1         78  
9 1     1   7 use Carp;
  1         2  
  1         188  
10              
11             our @ISA = qw{ Astro::Coord::ECI::TLE };
12             our $VERSION = '0.129_01';
13              
14             my $pkg = __PACKAGE__;
15              
16             sub new {
17 4     4 1 982 my ( $class, %args ) = @_;
18 4         19 my $self = $class->SUPER::new();
19 4         12 $self->{$pkg}{period} = delete $args{period};
20 4         17 $self->set( %args );
21 4         35 return $self;
22             }
23              
24             sub period {
25 4     4 1 7 my ( $self ) = @_;
26 4         12 return $self->{$pkg}{period};
27             }
28              
29             1;
30              
31             __END__