blib/lib/CXC/Number/Sequence/Failure.pm

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 34 / 34 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/CXC/Number/Grid/Failure.pm ↑ Summary blib/lib/CXC/Number/Sequence/Fixed.pm »
1 package CXC::Number::Sequence::Failure;
2  
3 # ABSTRACT: CXC::Number::Sequence Exceptions
4  
5 13 ▶use v5.28;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 13 ▶use experimental 'signatures';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 13 ▶use parent 'Exporter::Tiny';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 13 ▶use custom::failures ();
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 13 our $VERSION = '0.12';
14  
15 13 our @EXPORT_OK;
16 BEGIN {
17 13 ▶ my @failures = qw/ parameter::constraint
Subroutine BEGIN: called CC=1 SCAR=0.0
18 parameter::unknown
19 parameter::interface
20 parameter::IllegalCombination
21 loadclass::NoClass
22 loadclass::CompileError
23 internal
24 /;
25 13 custom::failures->import( __PACKAGE__, @failures );
26 13 @EXPORT_OK = map { s/::/_/r } @failures;
27 }
28  
29 ▶sub _exporter_expand_sub ( $, $name, $, $, $ ) {
Subroutine _exporter_expand_sub: called CC=1 SCAR=0.0
30 203 my $failure = __PACKAGE__ . q{::} . ( $name =~ s/_/::/gr );
31 ## no critic (BuiltinFunctions::ProhibitStringyEval)
32 ## no critic (ErrorHandling::RequireCheckingReturnValueOfEval)
33 203 $name => eval "sub () { '$failure' }";
34 }
35  
36 13 1;
37  
38 __END__
39  
40 =pod
41  
42 =for :stopwords Diab Jerius Smithsonian Astrophysical Observatory
43  
44 =head1 NAME
45  
46 CXC::Number::Sequence::Failure - CXC::Number::Sequence Exceptions
47  
48 =head1 VERSION
49  
50 version 0.12
51  
52 =head1 INTERNALS
53  
54 =head1 SUPPORT
55  
56 =head2 Bugs
57  
58 Please report any bugs or feature requests to bug-cxc-number@rt.cpan.org or through the web interface at: L<https://rt.cpan.org/Public/Dist/Display.html?Name=CXC-Number>
59  
60 =head2 Source
61  
62 Source is available at
63  
64 https://gitlab.com/djerius/cxc-number
65  
66 and may be cloned from
67  
68 https://gitlab.com/djerius/cxc-number.git
69  
70 =head1 SEE ALSO
71  
72 Please see those modules/websites for more information related to this module.
73  
74 =over 4
75  
76 =item *
77  
78 L<CXC::Number|CXC::Number>
79  
80 =back
81  
82 =head1 AUTHOR
83  
84 Diab Jerius <djerius@cpan.org>
85  
86 =head1 COPYRIGHT AND LICENSE
87  
88 This software is Copyright (c) 2019 by Smithsonian Astrophysical Observatory.
89  
90 This is free software, licensed under:
91  
92 The GNU General Public License, Version 3, June 2007
93  
94 =cut
« blib/lib/CXC/Number/Grid/Failure.pm ↑ Summary blib/lib/CXC/Number/Sequence/Fixed.pm »