File Coverage

lib/WebService/OpenSky/Moose.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 14 14 100.0


line stmt bran cond sub pod time code
1             package WebService::OpenSky::Moose;
2              
3             # ABSTRACT: MooseX::Extended::Custom for WebService::OpenSky
4              
5 9     9   4219 use MooseX::Extended::Custom;
  9         7708823  
  9         53  
6 9     9   28080 use PerlX::Maybe 'provided';
  9         23701  
  9         60  
7             our $VERSION = '0.4';
8              
9             # If $^P is true, we're running under the debugger.
10             #
11             # When running under the debugger, we disable __PACKAGE__->meta->make_immutable
12             # because the way the debugger works with B::Hooks::AtRuntime will cause
13             # the class to be made immutable before the we apply everything we need. This
14             # causes the code to die.
15 73     73   177 sub import ( $class, %args ) {
  73         162  
  73         134  
  73         116  
16 73         739 MooseX::Extended::Custom->create(
17             includes => 'method',
18             provided $^P, excludes => 'immutable',
19             %args # you need this to allow customization of your customization
20             );
21             }
22              
23             __END__
24              
25             =pod
26              
27             =encoding UTF-8
28              
29             =head1 NAME
30              
31             WebService::OpenSky::Moose - MooseX::Extended::Custom for WebService::OpenSky
32              
33             =head1 VERSION
34              
35             version 0.4
36              
37             =head1 DESCRIPTION
38              
39             No user-serviceable parts inside.
40              
41             =head1 AUTHOR
42              
43             Curtis "Ovid" Poe <curtis.poe@gmail.com>
44              
45             =head1 COPYRIGHT AND LICENSE
46              
47             This software is Copyright (c) 2023 by Curtis "Ovid" Poe.
48              
49             This is free software, licensed under:
50              
51             The Artistic License 2.0 (GPL Compatible)
52              
53             =cut