| 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
Condition100%3/3
$self->uri or $self->catalog
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
| |||||||||||||||||||||||||||||
| 13 | unless ( $self->uri or $self->catalog ); | ||||||||||||||||||||||||||||
| 14 | 344 | return; | |||||||||||||||||||||||||||
| 15 | } | ||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | 27 | __PACKAGE__->meta->make_immutable; | |||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | 27 | 1; | |||||||||||||||||||||||||||
| 20 | __END__ | ||||||||||||||||||||||||||||