File Coverage

blib/lib/CXC/Number/Grid/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::Grid::Failure;
2              
3             # ABSTRACT: CXC::Number::Sequence Exceptions
4 13     13   186400 use v5.28;
  13         71  
5 13     13   73 use strict;
  13         27  
  13         332  
6 13     13   55 use warnings;
  13         27  
  13         738  
7 13     13   4981 use experimental 'signatures';
  13         42730  
  13         84  
8              
9 13     13   7495 use parent 'Exporter::Tiny';
  13         3356  
  13         90  
10 13     13   11603 use custom::failures ();
  13         70037  
  13         2209  
11              
12             our $VERSION = '0.13';
13              
14             our @EXPORT_OK;
15             BEGIN {
16 13     13   101 my @failures = qw/ parameter::constraint
17             parameter::unknown
18             parameter::interface
19             parameter::IllegalCombination
20             internal
21             /;
22 13         128 custom::failures->import( __PACKAGE__, @failures );
23 13         10213 @EXPORT_OK = map { s/::/_/r } @failures;
  65         3439  
24             }
25              
26 36     36   4676 sub _exporter_expand_sub ( $, $name, $, $, $ ) {
  36         79  
  36         57  
27 36         167 my $failure = __PACKAGE__ . q{::} . ( $name =~ s/_/::/gr );
28             ## no critic (BuiltinFunctions::ProhibitStringyEval)
29             ## no critic (ErrorHandling::RequireCheckingReturnValueOfEval)
30 36         4051 $name => eval "sub () { '$failure' }";
31             }
32              
33             1;
34              
35             __END__
36              
37             =pod
38              
39             =for :stopwords Diab Jerius Smithsonian Astrophysical Observatory
40              
41             =head1 NAME
42              
43             CXC::Number::Grid::Failure - CXC::Number::Sequence Exceptions
44              
45             =head1 VERSION
46              
47             version 0.13
48              
49             =head1 INTERNALS
50              
51             =head1 SUPPORT
52              
53             =head2 Bugs
54              
55             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>
56              
57             =head2 Source
58              
59             Source is available at
60              
61             https://gitlab.com/djerius/cxc-number
62              
63             and may be cloned from
64              
65             https://gitlab.com/djerius/cxc-number.git
66              
67             =head1 SEE ALSO
68              
69             Please see those modules/websites for more information related to this module.
70              
71             =over 4
72              
73             =item *
74              
75             L<CXC::Number|CXC::Number>
76              
77             =back
78              
79             =head1 AUTHOR
80              
81             Diab Jerius <djerius@cpan.org>
82              
83             =head1 COPYRIGHT AND LICENSE
84              
85             This software is Copyright (c) 2019 by Smithsonian Astrophysical Observatory.
86              
87             This is free software, licensed under:
88              
89             The GNU General Public License, Version 3, June 2007
90              
91             =cut