line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package My::Module::Test; |
2
|
|
|
|
|
|
|
|
3
|
10
|
|
|
10
|
|
18233
|
use 5.008; |
|
10
|
|
|
|
|
93
|
|
4
|
|
|
|
|
|
|
|
5
|
10
|
|
|
10
|
|
59
|
use strict; |
|
10
|
|
|
|
|
14
|
|
|
10
|
|
|
|
|
253
|
|
6
|
10
|
|
|
10
|
|
94
|
use warnings; |
|
10
|
|
|
|
|
43
|
|
|
10
|
|
|
|
|
284
|
|
7
|
|
|
|
|
|
|
|
8
|
10
|
|
|
10
|
|
9853
|
use Astro::Coord::ECI; |
|
10
|
|
|
|
|
403399
|
|
|
10
|
|
|
|
|
387
|
|
9
|
10
|
|
|
10
|
|
90
|
use Astro::Coord::ECI::Utils qw{ AU deg2rad rad2deg }; |
|
10
|
|
|
|
|
14
|
|
|
10
|
|
|
|
|
608
|
|
10
|
10
|
|
|
10
|
|
134
|
use Carp; |
|
10
|
|
|
|
|
14
|
|
|
10
|
|
|
|
|
513
|
|
11
|
10
|
|
|
10
|
|
56
|
use Exporter qw{ import }; |
|
10
|
|
|
|
|
14
|
|
|
10
|
|
|
|
|
470
|
|
12
|
10
|
|
|
10
|
|
7089
|
use Test::More 0.88; # Because of done_testing(); |
|
10
|
|
|
|
|
662441
|
|
|
10
|
|
|
|
|
81
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '0.005_02'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our @EXPORT = qw{ |
17
|
|
|
|
|
|
|
is_au_au |
18
|
|
|
|
|
|
|
is_km_au |
19
|
|
|
|
|
|
|
is_rad_deg |
20
|
|
|
|
|
|
|
strftime_h |
21
|
|
|
|
|
|
|
strftime_m |
22
|
|
|
|
|
|
|
washington_dc |
23
|
|
|
|
|
|
|
}; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
{ |
26
|
|
|
|
|
|
|
package Astro::Coord::ECI::VSOP87D; |
27
|
10
|
|
|
10
|
|
3110
|
use constant DEBUG => $ENV{VSOP87D_DEBUG}; |
|
10
|
|
|
|
|
21
|
|
|
10
|
|
|
|
|
4386
|
|
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub is_au_au { |
31
|
4
|
|
|
4
|
1
|
1562
|
my ( $got, $want, $dp, $title ) = @_; |
32
|
4
|
|
|
|
|
11
|
my $tplt = "%.${dp}f"; |
33
|
4
|
|
|
|
|
39
|
@_ = ( |
34
|
|
|
|
|
|
|
sprintf( $tplt, $got ), |
35
|
|
|
|
|
|
|
sprintf( $tplt, $want ), |
36
|
|
|
|
|
|
|
$title, |
37
|
|
|
|
|
|
|
); |
38
|
4
|
|
|
|
|
17
|
goto &is; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub is_km_au { |
42
|
2
|
|
|
2
|
1
|
1641
|
splice @_, 0, 1, $_[0] / AU; |
43
|
2
|
|
|
|
|
7
|
goto &is_au_au; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub is_rad_deg { |
47
|
9
|
|
|
9
|
1
|
5074
|
my ( $got, $want, $dp, $title ) = @_; |
48
|
9
|
|
|
|
|
23
|
my $tplt = "%.${dp}f"; |
49
|
9
|
|
|
|
|
26
|
@_ = ( |
50
|
|
|
|
|
|
|
sprintf( $tplt, rad2deg( $got ) ), |
51
|
|
|
|
|
|
|
sprintf( $tplt, $want ), |
52
|
|
|
|
|
|
|
$title, |
53
|
|
|
|
|
|
|
); |
54
|
9
|
|
|
|
|
152
|
goto &is; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub strftime_h { |
58
|
35
|
|
|
35
|
1
|
49195
|
my ( $time ) = @_; |
59
|
35
|
|
|
|
|
3221
|
return POSIX::strftime( '%Y-%m-%d %H', gmtime( $time + 1800 ) ); |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
sub strftime_m { |
63
|
29
|
|
|
29
|
1
|
31972
|
my ( $time ) = @_; |
64
|
29
|
|
|
|
|
2469
|
return POSIX::strftime( '%Y-%m-%d %H:%M', gmtime( $time + 30 ) ); |
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
sub washington_dc { |
68
|
8
|
|
|
8
|
1
|
724
|
return Astro::Coord::ECI->new( |
69
|
|
|
|
|
|
|
)->geodetic( |
70
|
|
|
|
|
|
|
deg2rad( 38.89 ), |
71
|
|
|
|
|
|
|
deg2rad( -77.03 ), |
72
|
|
|
|
|
|
|
0, |
73
|
|
|
|
|
|
|
); |
74
|
|
|
|
|
|
|
} |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
1; |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
__END__ |