lib/OpenSky/API/Types.pm

filter: Statementstmt 83.3% 10 / 12 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod n/a totaltotal 61.9% 13 / 21 CC 3 SCAR 9.3
CC
3
Cov
62%
__ANON__
3.7
__ANON__
3.7
BEGIN
1.0
CRAP 2.5
« lib/OpenSky/API/Utils/Iterator.pm ↑ Summary blib/lib/OpenSky/API/Core.pm »
1 # ABSTRACT: Type library for OpenSky::API
2  
3 package OpenSky::API::Types;
4 5 our $VERSION = '0.002';
5 use Type::Library
6 5 -base,
7 -declare => qw(
8 Longitude
9 Latitude
10 5 ▶ );
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 5 ▶use Type::Utils -all;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 BEGIN {
15 5 ▶ extends qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
16 Types::Standard
17 Types::Common::Numeric
18 Types::Common::String
19 );
20 }
21  
22 0 ▶declare Longitude, as Num, where { $_ >= -180 and $lon <= 180 };
Subroutine __ANON__: not called CC=2 SCAR=13.0
Branch: 1 branch
BranchTrueFalseTotal
$_ >= -180 and $lon <= 180 0 0 0
23 0 ▶declare Latitude, as Num, where { $_ >= -90 and $lon <= 90 };
Subroutine __ANON__: not called CC=2 SCAR=13.0
Branch: 1 branch
BranchTrueFalseTotal
$_ >= -90 and $lon <= 90 0 0 0
24  
25 __END__
26  
27 =pod
28  
29 =encoding UTF-8
30  
31 =head1 NAME
32  
33 OpenSky::API::Types - Type library for OpenSky::API
34  
35 =head1 VERSION
36  
37 version 0.002
38  
39 =head1 DESCRIPTION
40  
41 No user-serviceable parts inside.
42  
43 =head1 CUSTOM TYPES
44  
45 =head2 Longitude
46  
47 A number between -180 and 180, inclusive.
48  
49 =head2 Latitude
50  
51 A number between -90 and 90, inclusive.
52  
53 =head1 AUTHOR
54  
55 Curtis "Ovid" Poe <curtis.poe@gmail.com>
56  
57 =head1 COPYRIGHT AND LICENSE
58  
59 This software is Copyright (c) 2023 by Curtis "Ovid" Poe.
60  
61 This is free software, licensed under:
62  
63 The Artistic License 2.0 (GPL Compatible)
64  
65 =cut
« lib/OpenSky/API/Utils/Iterator.pm ↑ Summary blib/lib/OpenSky/API/Core.pm »