SDK/AppConfiguration/ConfigurationLabel.pm

filter: Statementstmt 100% 15 / 15 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 3 / 9 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 68.5% 24 / 35 CC 5 SCAR 17.9
CC
5
Cov
73%
__ANON__
10.0
BEGIN
1.0
BEGIN
1.0
CRAP 6.0
« SDK/Storage/Tables/Uri.pm ↑ Summary SDK/Core/Policy/Retry.pm »
1 2 ▶use v5.36;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use feature 'class';
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶no warnings 'experimental::class';
Subroutine BEGIN: called CC=1 SCAR=0.0
4
5 2 class Azure::SDK::AppConfiguration::ConfigurationLabel {
6 2 ▶ use Carp qw(croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
7
8 2 field $name :param :reader;
9
10 2 ▶ ADJUST {
Subroutine __ANON__: called CC=5 SCAR=23.0
11 2 ▶ croak 'App Configuration label name must be a non-empty scalar without control characters'
Branch: 1 branch
BranchTrueFalseTotal
unless defined $name and not ref $name and length $name and not $name =~ /[\x00-\x1f\x7f]/u 0 2 2
Condition33%3/9
defined $name and not ref $name and length $name and not $name =~ /[\x00-\x1f\x7f]/u
!ll&&!rl&&r
002
defined $name and not ref $name and length $name
!ll&&!rl&&r
002
defined $name and not ref $name
!ll&&!rl&&r
002
MC/DC0%0/4
defined $name and not ref $name and length $name and not $name =~ /[\x00-\x1f\x7f]/u
defined $name not ref $name length $name not $name =~ /[\x00-\x1f\x7f]/u
Truth table20%1/5
A and not(B) and C and not(D)
A= defined $nameB= not ref $nameC= length $nameD= not $name =~ /[\x00-\x1f\x7f]/u
ABCDresult
0XXX0
10XX0
110X0
11100
11111
12 unless defined $name && !ref $name && length $name
13 && $name !~ /[\x00-\x1f\x7f]/;
14 }
15 }
16
17 2 1;
18
19 __END__
« SDK/Storage/Tables/Uri.pm ↑ Summary SDK/Core/Policy/Retry.pm »