line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Astro::App::Satpass2::FormatValue::Formatter; |
2
|
|
|
|
|
|
|
|
3
|
11
|
|
|
11
|
|
253
|
use 5.008; |
|
11
|
|
|
|
|
42
|
|
4
|
|
|
|
|
|
|
|
5
|
11
|
|
|
11
|
|
75
|
use strict; |
|
11
|
|
|
|
|
48
|
|
|
11
|
|
|
|
|
222
|
|
6
|
11
|
|
|
11
|
|
65
|
use warnings; |
|
11
|
|
|
|
|
28
|
|
|
11
|
|
|
|
|
353
|
|
7
|
|
|
|
|
|
|
|
8
|
11
|
|
|
11
|
|
7199
|
use Astro::App::Satpass2::FormatValue; |
|
11
|
|
|
|
|
40
|
|
|
11
|
|
|
|
|
491
|
|
9
|
11
|
|
|
11
|
|
90
|
use Astro::App::Satpass2::Utils qw{ has_method @CARP_NOT }; |
|
11
|
|
|
|
|
25
|
|
|
11
|
|
|
|
|
2821
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $VERSION = '0.052'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
1
|
|
|
1
|
1
|
4
|
my ( $class, $info ) = @_; |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
|
|
8
|
return bless { |
17
|
|
|
|
|
|
|
info => $info, |
18
|
|
|
|
|
|
|
code => Astro::App::Satpass2::FormatValue |
19
|
|
|
|
|
|
|
->__make_formatter_code( $info ), |
20
|
|
|
|
|
|
|
}, $class; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub code { |
25
|
1
|
|
|
1
|
1
|
4
|
my ( $self ) = @_; |
26
|
1
|
|
|
|
|
7
|
return $self->{code}; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub name { |
30
|
3
|
|
|
3
|
1
|
9
|
my ( $self ) = @_; |
31
|
3
|
|
|
|
|
15
|
return $self->{info}{name}; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |