Pad/Error.pm

filter: Statementstmt 100% 32 / 32 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 8 / 8 Podpod 100% 4 / 4 totaltotal 91.8% 45 / 49 CC 2 SCAR 2.1
CC
2
Cov
94%
attachContext
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Pad/Config/Format.pm ↑ Summary Pad/Config/Format/Yaml.pm »
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
l!l&&r!l&&!r
0600
MC/DC0%0/2
$level //= $contextLevel
$level $contextLevel
Truth table33%1/3
A //= B
A= $levelB= $contextLevel
ABresult
1X1
011
000
18 60 return $self;
19 12 }
20 }
21  
22 12 1;
23  
24 __END__
« Pad/Config/Format.pm ↑ Summary Pad/Config/Format/Yaml.pm »