| 1 | package OOP::Constructor; | ||||||||||||
| 2 | |||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 1 | ▶ | use Carp; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 1 | ▶ | use OOP::_getArgs; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | |||||||||||||
| 7 | 4 | ▶ | sub set_args { | ||||||||||
|
Subroutine
set_args: called CC=3 SCAR=11.2
Pod
undocumented
| |||||||||||||
| 8 | |||||||||||||
| 9 | 4 | my ($self, $ARGS) = @_; | |||||||||||
| 10 | |||||||||||||
| 11 | 4 | ▶ | my $arguments = $ARGS->{ARGS} || croak "No arguments were passed to the prototype!"; | ||||||||||
|
Condition50%1/2
$ARGS->{'ARGS'} || croak('No arguments were passed to the prototype!')
MC/DC0%0/1
$ARGS->{'ARGS'} || croak('No arguments were passed to the prototype!')
$ARGS->{'ARGS'}
Truth table50%1/2
A
A= $ARGS->{'ARGS'}
| |||||||||||||
| 12 | 4 | ▶ | my $prototype = $ARGS->{PROTOTYPE} || croak "No prototype was passed to the prototype!"; | ||||||||||
|
Condition50%1/2
$ARGS->{'PROTOTYPE'} || croak('No prototype was passed to the prototype!')
MC/DC0%0/1
$ARGS->{'PROTOTYPE'} || croak('No prototype was passed to the prototype!')
$ARGS->{'PROTOTYPE'}
Truth table50%1/2
A
A= $ARGS->{'PROTOTYPE'}
| |||||||||||||
| 13 | |||||||||||||
| 14 | 4 | my %test; | |||||||||||
| 15 | |||||||||||||
| 16 | 4 | tie(%test, 'OOP::_getArgs', { | |||||||||||
| 17 | ARGS => $arguments, | ||||||||||||
| 18 | PROTOTYPE => $prototype | ||||||||||||
| 19 | }); | ||||||||||||
| 20 | |||||||||||||
| 21 | 4 | return \%test; | |||||||||||
| 22 | |||||||||||||
| 23 | } | ||||||||||||
| 24 | |||||||||||||
| 25 | 1 | 1; | |||||||||||