| 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")
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")
| |||||||||||||||||||||
| 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__ | ||||||||||||||||||||