| 1 | package ICANN::RST::Error; | ||||||||||||||||||||||||||||
| 2 | # ABSTRACT: an object representing an RST error. | ||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use base qw(ICANN::RST::Base); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | 0 | ▶ | sub severity { $_[0]->{'Severity'} } | ||||||||||||||||||||||||||
|
Subroutine
severity: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 7 | 0 | ▶ | sub description { ICANN::RST::Text->new($_[0]->{'Description'}) } | ||||||||||||||||||||||||||
|
Subroutine
description: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | 0 | ▶ | sub cases { | ||||||||||||||||||||||||||
|
Subroutine
cases: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||||||||||||||||||
| 10 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | 0 | my %cases; | |||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | 0 | foreach my $case ($self->spec->cases) { | |||||||||||||||||||||||||||
| 15 | 0 | foreach my $error ($case->errors) { | |||||||||||||||||||||||||||
| 16 | 0 | ▶ | $cases{$case->id} = $case if ($error->id eq $self->id && !defined($cases{$case->id})); | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$error->id eq $self->id and not defined $cases{$case->id}
MC/DC0%0/2
$error->id eq $self->id and not defined $cases{$case->id}
$error->id eq $self->id
not defined $cases{$case->id}
Truth table0%0/3
A and not(B)
A= $error->id eq $self->idB= not defined $cases{$case->id}
| |||||||||||||||||||||||||||||
| 17 | } | ||||||||||||||||||||||||||||
| 18 | } | ||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | 0 | return sort { $a->id cmp $b->id } values(%cases); | |||||||||||||||||||||||||||
| 21 | } | ||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | 1 | 1; | |||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||
| 25 | __END__ | ||||||||||||||||||||||||||||