blib/lib/CXC/Gnuplot/V1/Terminal.pm

filter: Statementstmt 76.0% 19 / 25 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 75.0% 6 / 8 Podpod 100% 1 / 1 totaltotal 66.6% 26 / 39 CC 2 SCAR 8.0
CC
2
Cov
68%
new
6.0
croak
2.0
BEGIN
1.0
CRAP 2.2
« blib/lib/CXC/Gnuplot/V0/CoordValue.pm ↑ Summary blib/lib/CXC/Gnuplot/V0/LiteralDataValue.pm »
1 package CXC::Gnuplot::V1::Terminal;
2  
3 1 ▶use v5.38;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 our $VERSION = 'v0.29.3';
6  
7 1 ▶use experimental 'builtin', 'declared_refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use builtin::compat 'load_module', 'true';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶no namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Ref::Util 'is_plain_hashref';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 my sub croak {
15 0 ▶ require Carp;
Subroutine croak: not called CC=1 SCAR=6.9
16 0 goto \&Carp::croak;
17 }
18  
19  
20  
21  
22  
23 ▶sub new ( $class, %arg ) {
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
24 my $terminal = delete( $arg{terminal} )
25 0 ▶ // croak( 'unspecified terminal type; missing "terminal" attribute' );
Condition0%0/3
delete $arg{"terminal"} // croak("unspecified terminal type; missing \"terminal\" attribute")
l!l&&r!l&&!r
000
MC/DC0%0/2
delete $arg{"terminal"} // croak("unspecified terminal type; missing \"terminal\" attribute")
delete $arg{"terminal"} croak("unspecified terminal type; missing \"terminal\" attribute")
Truth table0%0/3
A // B
A= delete $arg{"terminal"}B= croak("unspecified terminal type; missing \"terminal\" attribute")
ABresult
1X1
011
000
26  
27 0 $class .= q{::} . $terminal;
28  
29 0 load_module( $class );
30 0 return $class->new( %arg );
31 }
32  
33 1 1;
34  
35 #
36 # This file is part of CXC-Gnuplot
37 #
38 # This software is Copyright (c) 2024 by Smithsonian Astrophysical Observatory.
39 #
40 # This is free software, licensed under:
41 #
42 # The GNU General Public License, Version 3, June 2007
43 #
44  
45 __END__
« blib/lib/CXC/Gnuplot/V0/CoordValue.pm ↑ Summary blib/lib/CXC/Gnuplot/V0/LiteralDataValue.pm »