NewsML_G2/Scheme.pm

filter: Statementstmt 100% 14 / 14 Branchbran 100% 2 / 2 Conditioncond 100% 3 / 3 MC/DCmcdc 100% 2 / 2 Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 96.0% 24 / 25 CC 3 SCAR 7.9
CC
3
Cov
100%
BUILD
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« NewsML_G2/Role/Writer.pm ↑ Summary NewsML_G2/Substancial_Item.pm »
1 package XML::NewsML_G2::Scheme;
2  
3 27 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 27 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 27 has 'alias', isa => 'Str', is => 'ro', required => 1;
7 27 has 'uri', isa => 'Str', is => 'ro';
8 27 has 'catalog', isa => 'Str', is => 'ro';
9  
10 345 ▶sub BUILD {
Subroutine BUILD: called CC=3 SCAR=11.0
Pod undocumented
11 345 my $self = shift;
12 345 ▶ die "Either uri or catalog is required\n"
Branch: 1 branch
BranchTrueFalseTotal
unless $self->uri or $self->catalog 1 344 345
Condition100%3/3
$self->uri or $self->catalog
l!l&&r!l&&!r
972471
MC/DC100%2/2
$self->uri or $self->catalog
$self->uri $self->catalog
Truth table100%3/3
A or B
A= $self->uriB= $self->catalog
ABresult
1X1
011
000
13 unless ( $self->uri or $self->catalog );
14 344 return;
15 }
16  
17 27 __PACKAGE__->meta->make_immutable;
18  
19 27 1;
20 __END__
« NewsML_G2/Role/Writer.pm ↑ Summary NewsML_G2/Substancial_Item.pm »