| 1 | package Net::ACME::X::Empty; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | 1 | ▶ | use parent qw( Net::ACME::X::HashBase ); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 2 | ▶ | sub new { | ||||||||||||||||||||||||||
|
Subroutine
new: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 9 | 2 | my ( $class, $args_hr ) = @_; | |||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | 2 | my $str; | |||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 2 | ▶ | if ( defined $args_hr->{'name'} && length $args_hr->{'name'} ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
defined $args_hr->{"name"} and length $args_hr->{"name"}
MC/DC50%1/2
defined $args_hr->{"name"} and length $args_hr->{"name"}
defined $args_hr->{"name"}
length $args_hr->{"name"}
Truth table66%2/3
A and B
A= defined $args_hr->{"name"}B= length $args_hr->{"name"}
| |||||||||||||||||||||||||||||
| 14 | 1 | $str = "“$args_hr->{'name'}” cannot be empty!"; | |||||||||||||||||||||||||||
| 15 | } | ||||||||||||||||||||||||||||
| 16 | else { | ||||||||||||||||||||||||||||
| 17 | 1 | $str = 'This value cannot be empty!'; | |||||||||||||||||||||||||||
| 18 | } | ||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | 2 | return $class->SUPER::new($str, $args_hr); | |||||||||||||||||||||||||||
| 21 | } | ||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | 1 | 1; | |||||||||||||||||||||||||||