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