blib/lib/CXC/Gnuplot/V1/Bound/Numeric.pm

filter: Statementstmt 60.0% 3 / 5 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 71.4% 5 / 7 CC 1 SCAR 1.4
CC
1
Cov
60%
BEGIN
1.3
BEGIN
1.0
CRAP 1.1
« blib/lib/CXC/Gnuplot/V1/Bound.pm ↑ Summary blib/lib/CXC/Gnuplot/V1/Bound/TimeDate.pm »
1 package CXC::Gnuplot::V1::Bound::Numeric;
2  
3 1 ▶use v5.38;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Object::Pad 0.821;
Subroutine BEGIN: called CC=1 SCAR=2.6
5 use CXC::Gnuplot::V1::Bound;
6  
7 our $VERSION = 'v0.29.3';
8  
9 class CXC::Gnuplot::V1::Bound::Numeric : isa(CXC::Gnuplot::V1::Bound);
10  
11 my sub croak {
12 require Carp;
13 goto \&Carp::croak;
14 }
15  
16 use CXC::Gnuplot::V1::Types -lexical => 'Num', 'is_Num';
17 use CXC::Gnuplot::V1::Util -lexical => 'pvalidate';
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29 ADJUST {
30  
31 pvalidate( lower_bound => Num, \$self->lower_bound );
32 pvalidate( upper_bound => Num, \$self->upper_bound );
33  
34 if ( !is_Num( $self->bound ) ) {
35 croak( '"bound" parameter must be a number or the character "*"' )
36 if $self->bound ne q{*};
37 }
38 elsif (defined $self->lower_bound
39 or defined $self->upper_bound )
40 {
41 croak(
42 '"bound" parameter cannot be a number if any of the "upper_bound" or "lower_bound" parameters are specified',
43 );
44 }
45  
46 }
47  
48 1;
49  
50 #
51 # This file is part of CXC-Gnuplot
52 #
53 # This software is Copyright (c) 2024 by Smithsonian Astrophysical Observatory.
54 #
55 # This is free software, licensed under:
56 #
57 # The GNU General Public License, Version 3, June 2007
58 #
59  
60 __END__
« blib/lib/CXC/Gnuplot/V1/Bound.pm ↑ Summary blib/lib/CXC/Gnuplot/V1/Bound/TimeDate.pm »