line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package My::Module::Test; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
6031
|
use 5.010; |
|
2
|
|
|
|
|
7
|
|
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
43
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
45
|
|
6
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
80
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
14
|
use Carp; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
189
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '0.001_02'; |
11
|
|
|
|
|
|
|
|
12
|
2
|
|
|
2
|
|
15
|
use Exporter qw{ import }; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
145
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our @EXPORT_OK = qw{ |
15
|
|
|
|
|
|
|
CLASS_VENUS |
16
|
|
|
|
|
|
|
NO_STAR |
17
|
|
|
|
|
|
|
NO_VENUS |
18
|
|
|
|
|
|
|
TEST_CONFIG_FILE |
19
|
|
|
|
|
|
|
parsed_value |
20
|
|
|
|
|
|
|
}; |
21
|
|
|
|
|
|
|
our @EXPORT = @EXPORT_OK; |
22
|
|
|
|
|
|
|
|
23
|
2
|
|
|
2
|
|
12
|
use constant CLASS_VENUS => 'Astro::Coord::ECI::VSOP87D::Venus'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
218
|
|
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
|
|
0
|
BEGIN { |
26
|
2
|
|
|
2
|
|
58
|
local $@ = undef; |
27
|
|
|
|
|
|
|
|
28
|
2
|
50
|
|
|
|
3
|
use constant NO_STAR => eval { |
29
|
2
|
|
|
|
|
1072
|
require Astro::Coord::ECI::Star; |
30
|
2
|
|
|
|
|
5399
|
1; |
31
|
2
|
|
|
2
|
|
14
|
} ? '' : 'Astro::Coord::ECI::Star not available'; |
|
2
|
|
|
|
|
3
|
|
32
|
|
|
|
|
|
|
|
33
|
2
|
50
|
|
|
|
3
|
use constant NO_VENUS => eval { |
34
|
2
|
|
|
|
|
470
|
require Astro::Coord::ECI::VSOP87D::Venus; |
35
|
0
|
|
|
|
|
0
|
1; |
36
|
2
|
|
|
2
|
|
15
|
} ? '' : 'Astro::Coord::ECI::VSOP87D::Venus not available'; |
|
2
|
|
|
|
|
3
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
2
|
|
|
|
|
225
|
use constant TEST_CONFIG_FILE => NO_STAR ? |
41
|
|
|
|
|
|
|
't/data/white-house.cfg' : |
42
|
2
|
|
|
2
|
|
11
|
't/data/white-house-with-star.cfg'; |
|
2
|
|
|
|
|
4
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub parsed_value { |
45
|
11
|
|
|
11
|
1
|
10181
|
my ( $obj, $string ) = @_; |
46
|
11
|
50
|
|
|
|
44
|
$obj->parse( $string ) |
47
|
|
|
|
|
|
|
or return $obj->value( 'gmt' ); |
48
|
0
|
|
|
|
|
|
return $obj->err() . " '$string'"; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__END__ |