| 1 | 12 | ▶ | use v5.26; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 2 | 12 | ▶ | use Object::Pad; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | |||||||||||||||||||||
| 4 | class Getopt::Pad::Error { | ||||||||||||||||||||
| 5 | 12 | ▶ | use overload '""' => sub { $_[0]->message }, fallback => 1; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 12 | our $VERSION = '0.06'; | |||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 150 | ▶ | field $message :param :reader; | ||||||||||||||||||
|
Subroutine
message: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 10 | field $level :param :reader = undef; | ||||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | 1 | ▶ | method throw :common ($format, @args) { | ||||||||||||||||||
|
Subroutine
level: called CC=1 SCAR=0.0
Subroutine
throw: called CC=1 SCAR=0.0
Pod
documented
Pod
documented
| |||||||||||||||||||||
| 13 | 75 | die $class->new(message => sprintf($format, @args)); | |||||||||||||||||||
| 14 | 12 | } | |||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | 60 | ▶ | method attachContext($contextLevel) { | ||||||||||||||||||
|
Subroutine
attachContext: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||||||||||||
| 17 | 60 | ▶ | $level //= $contextLevel; | ||||||||||||||||||
|
Condition33%1/3
$level //= $contextLevel
MC/DC0%0/2
$level //= $contextLevel
$level
$contextLevel
Truth table33%1/3
A //= B
A= $levelB= $contextLevel
| |||||||||||||||||||||
| 18 | 60 | return $self; | |||||||||||||||||||
| 19 | 12 | } | |||||||||||||||||||
| 20 | } | ||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | 12 | 1; | |||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | __END__ | ||||||||||||||||||||