blib/lib/GDPR/IAB/TCFv2/Validator/Failure.pm

filter: Statementstmt 100% 19 / 19 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 11 / 11 Podpod 100% 7 / 7 totaltotal 95.1% 39 / 41 CC 3 SCAR 4.1
CC
3
Cov
91%
new
3.2
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« blib/lib/GDPR/IAB/TCFv2/Validator/Result.pm ↑ Summary blib/lib/GDPR/IAB/TCFv2.pm »
1 package GDPR::IAB::TCFv2::Validator::Failure 0.530;
2  
3 27 ▶use v5.12;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 27 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 use overload
7 298 ▶ '""' => sub { $_[0]->{message} },
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
8 27 fallback => 1;
9  
10 3371 ▶sub new {
Subroutine new: called CC=3 SCAR=11.7
Pod documented
11 3371 my ($klass, %args) = @_;
12  
13 my $self = {
14 code => defined $args{code} ? $args{code} : 0,
15 message => defined $args{message} ? $args{message} : '',
16 purpose_id => $args{purpose_id},
17 vendor_id => $args{vendor_id},
18 restriction_type => $args{restriction_type},
19 cmp_id => $args{cmp_id},
20 3371 ▶ };
Branch: 2 branches
BranchTrueFalseTotal
defined $args{'code'} ? : 3371 0 3371
defined $args{'message'} ? : 3371 0 3371
21  
22 3371 return bless $self, $klass;
23 }
24  
25 29 ▶sub code { $_[0]->{code} }
Subroutine code: called CC=1 SCAR=0.0
Pod documented
26 3355 ▶sub message { $_[0]->{message} }
Subroutine message: called CC=1 SCAR=0.0
Pod documented
27 10 ▶sub purpose_id { $_[0]->{purpose_id} }
Subroutine purpose_id: called CC=1 SCAR=0.0
Pod documented
28 9 ▶sub vendor_id { $_[0]->{vendor_id} }
Subroutine vendor_id: called CC=1 SCAR=0.0
Pod documented
29 6 ▶sub restriction_type { $_[0]->{restriction_type} }
Subroutine restriction_type: called CC=1 SCAR=0.0
Pod documented
30 3 ▶sub cmp_id { $_[0]->{cmp_id} }
Subroutine cmp_id: called CC=1 SCAR=0.0
Pod documented
31  
32 27 1;
33  
34 __END__
« blib/lib/GDPR/IAB/TCFv2/Validator/Result.pm ↑ Summary blib/lib/GDPR/IAB/TCFv2.pm »