ACME/X/Empty.pm

filter: Statementstmt 100% 16 / 16 Branchbran 100% 2 / 2 Conditioncond 66.6% 2 / 3 MC/DCmcdc 50.0% 1 / 2 Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 89.2% 25 / 28 CC 3 SCAR 6.9
CC
3
Cov
95%
new
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« ACME/X/UnrecognizedKey.pm ↑ Summary ACME/Crypt.pm »
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
BranchTrueFalseTotal
if (defined $args_hr->{'name'} and length $args_hr->{'name'}) { } 1 1 2
Condition66%2/3
defined $args_hr->{"name"} and length $args_hr->{"name"}
!ll&&!rl&&r
101
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"}
ABresult
0X0
100
111
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;
« ACME/X/UnrecognizedKey.pm ↑ Summary ACME/Crypt.pm »