File Coverage

blib/lib/CXC/Number/Sequence/Failure.pm
Criterion Covered Total %
statement 26 26 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 34 34 100.0


line stmt bran cond sub pod time code
1             package CXC::Number::Sequence::Failure;
2              
3             # ABSTRACT: CXC::Number::Sequence Exceptions
4              
5 13     13   192126 use v5.28;
  13         69  
6 13     13   82 use strict;
  13         120  
  13         391  
7 13     13   68 use warnings;
  13         33  
  13         921  
8 13     13   5707 use experimental 'signatures';
  13         35718  
  13         89  
9              
10 13     13   5806 use parent 'Exporter::Tiny';
  13         2044  
  13         147  
11 13     13   14775 use custom::failures ();
  13         72838  
  13         2279  
12              
13             our $VERSION = '0.13';
14              
15             our @EXPORT_OK;
16             BEGIN {
17 13     13   87 my @failures = qw/ parameter::constraint
18             parameter::unknown
19             parameter::interface
20             parameter::IllegalCombination
21             loadclass::NoClass
22             loadclass::CompileError
23             internal
24             /;
25 13         164 custom::failures->import( __PACKAGE__, @failures );
26 13         16602 @EXPORT_OK = map { s/::/_/r } @failures;
  91         3033  
27             }
28              
29 203     203   22809 sub _exporter_expand_sub ( $, $name, $, $, $ ) {
  203         387  
  203         295  
30 203         839 my $failure = __PACKAGE__ . q{::} . ( $name =~ s/_/::/gr );
31             ## no critic (BuiltinFunctions::ProhibitStringyEval)
32             ## no critic (ErrorHandling::RequireCheckingReturnValueOfEval)
33 203         24153 $name => eval "sub () { '$failure' }";
34             }
35              
36             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.13
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