blib/lib/CXC/Gnuplot/V0/CoordPosition3D.pm

filter: Statementstmt 88.0% 22 / 25 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 66.6% 6 / 9 Podpod 100% 3 / 3 totaltotal 64.5% 31 / 48 CC 5 SCAR 20.4
CC
5
Cov
65%
to_hash
20.0
opts
6.0
clone
2.0
CRAP 7.7
« blib/lib/CXC/Gnuplot/V0/AxisMinorTics.pm ↑ Summary blib/lib/CXC/Gnuplot/V0/AxisFormat.pm »
1 package CXC::Gnuplot::V0::CoordPosition3D;
2  
3 2 ▶use v5.38;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use experimental 'declared_refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use Feature::Compat::Class;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 our $VERSION = 'v0.29.3';
8  
9 class CXC::Gnuplot::V0::CoordPosition3D;
10  
11 2 ▶use CXC::Gnuplot::V0::Types -lexical => 'CoordValue';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 use CXC::Gnuplot::V0::Util
14 2 -lexical => 'pvalidate',
15 2 ▶ 'to_hash_r';
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 #<<< no tidy
18 2 field $x :param :reader;
19 2 field $y :param :reader;
20 2 field $z :param :reader = undef;
21 #>>>
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38 ADJUST {
39 8 ▶ pvalidate( x => CoordValue, \$x );
Subroutine __ANON__: called CC=1 SCAR=0.0
40 8 pvalidate( y => CoordValue, \$y );
41 8 pvalidate( z => CoordValue, \$z );
42 }
43  
44  
45  
46  
47  
48 ▶method to_hash ( %args ) {
Subroutine to_hash: not called CC=4 SCAR=30.0
Pod documented
49 0 ▶ to_hash_r( {
Branch: 3 branches
BranchTrueFalseTotal
defined $x ? : 0 0 0
defined $y ? : 0 0 0
defined $z ? : 0 0 0
50 ( defined $x ? ( x => $x ) : () ), #
51 ( defined $y ? ( y => $y ) : () ),
52 ( defined $z ? ( z => $z ) : () ),
53 } );
54 }
55  
56  
57  
58  
59  
60 ▶method clone ( %args ) {
Subroutine clone: not called CC=1 SCAR=6.9
Pod documented
61 0 return clone_object( $self, \%args );
62 }
63  
64  
65  
66  
67  
68 method opts {
69 0 ▶ return join( q{,}, $x, $y, $z // () );
Subroutine opts: not called CC=2 SCAR=17.9
Pod documented
Condition0%0/3
$z // ()
l!l&&r!l&&!r
000
MC/DC0%0/2
$z // ()
$z ()
Truth table0%0/3
A // B
A= $zB= ()
ABresult
1X1
011
000
70 }
71  
72 2 1;
73  
74 #
75 # This file is part of CXC-Gnuplot
76 #
77 # This software is Copyright (c) 2024 by Smithsonian Astrophysical Observatory.
78 #
79 # This is free software, licensed under:
80 #
81 # The GNU General Public License, Version 3, June 2007
82 #
83  
84 __END__
« blib/lib/CXC/Gnuplot/V0/AxisMinorTics.pm ↑ Summary blib/lib/CXC/Gnuplot/V0/AxisFormat.pm »