SDK/AppConfiguration/Uri.pm

filter: Statementstmt 99.2% 124 / 125 Branchbran 67.0% 55 / 82 Conditioncond 44.0% 41 / 93 MC/DCmcdc 6.2% 3 / 48 Subroutinesub 100% 21 / 21 Podpod 100% 8 / 8 totaltotal 66.8% 252 / 377 CC 85 SCAR 30.9
CC
85
Cov
73%
for_snapshot_operation
38.9
for_next_link
38.0
__ANON__
22.5
CRAP 21.9
« SDK/Core/Credential/Sas.pm ↑ Summary SDK/Core.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 ▶use Azure::SDK::AppConfiguration::ConfigurationSetting;
Subroutine BEGIN: called CC=1 SCAR=0.0
6
7 2 class Azure::SDK::AppConfiguration::Uri {
8 2 ▶ use Carp qw(croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶ use URI ();
Subroutine BEGIN: called CC=1 SCAR=0.0
10
11 2 ▶ use constant API_VERSION => '1.0';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 2 ▶ use constant SNAPSHOT_API_VERSION => '2023-10-01';
Subroutine BEGIN: called CC=1 SCAR=0.0
13
14 2 field $endpoint :param :reader = undef;
15
16 12 ▶ ADJUST {
Subroutine __ANON__: called CC=10 SCAR=31.1
17 12 ▶ croak 'Azure::SDK::AppConfiguration::Uri requires an endpoint'
Branch: 1 branch
BranchTrueFalseTotal
unless defined $endpoint and not ref $endpoint and length $endpoint 0 12 12
Condition33%2/6
defined $endpoint and not ref $endpoint and length $endpoint
!ll&&!rl&&r
0012
defined $endpoint and not ref $endpoint
!ll&&!rl&&r
0012
MC/DC0%0/3
defined $endpoint and not ref $endpoint and length $endpoint
defined $endpoint not ref $endpoint length $endpoint
Truth table25%1/4
A and not(B) and C
A= defined $endpointB= not ref $endpointC= length $endpoint
ABCresult
0XX0
10X0
1100
1111
18 unless defined $endpoint && !ref $endpoint && length $endpoint;
19 12 my $uri = URI->new($endpoint);
20 12 ▶ croak 'App Configuration URI endpoint must be absolute'
Branch: 1 branch
BranchTrueFalseTotal
unless defined $uri->scheme and defined $uri->authority 0 12 12
Condition33%1/3
defined $uri->scheme and defined $uri->authority
!ll&&!rl&&r
0012
MC/DC0%0/2
defined $uri->scheme and defined $uri->authority
defined $uri->scheme defined $uri->authority
Truth table33%1/3
A and B
A= defined $uri->schemeB= defined $uri->authority
ABresult
0X0
100
111
21 unless defined $uri->scheme && defined $uri->authority;
22 12 ▶ croak 'App Configuration URI endpoint must not include a path, query, or fragment'
Branch: 1 branch
BranchTrueFalseTotal
unless ($uri->path // "") =~ m[\A/?\z]u and not defined $uri->query and not defined $uri->fragment 0 12 12
Condition37%3/8
($uri->path // "") =~ m[\A/?\z]u and not defined $uri->query and not defined $uri->fragment
!ll&&!rl&&r
0012
($uri->path // "") =~ m[\A/?\z]u and not defined $uri->query
!ll&&!rl&&r
0012
$uri->path // ""
l!l
120
MC/DC0%0/3
($uri->path // "") =~ m[\A/?\z]u and not defined $uri->query and not defined $uri->fragment
$uri->path not defined $uri->query not defined $uri->fragment
Truth table25%1/4
A and not(B) and not(C)
A= $uri->pathB= not defined $uri->queryC= not defined $uri->fragment
ABCresult
0XX0
10X0
1100
1111
23 unless ($uri->path // '') =~ m{\A/?\z}
24 && !defined $uri->query
25 && !defined $uri->fragment;
26 12 $endpoint = $uri->scheme . '://' . $uri->authority;
27 }
28
29 8 ▶ method for_setting ($key, $label = undef) {
Subroutine for_setting: called CC=4 SCAR=14.1
Pod documented
30 8 Azure::SDK::AppConfiguration::ConfigurationSetting->validate_key($key);
31 8 ▶ Azure::SDK::AppConfiguration::ConfigurationSetting->validate_label($label)
Branch: 1 branch
BranchTrueFalseTotal
if defined $label 0 8 8
32 if defined $label;
33 8 my @query;
34 8 ▶ push @query, 'label=' . _encode_component($label) if defined $label;
Branch: 1 branch
BranchTrueFalseTotal
if defined $label 0 8 8
35 8 push @query, 'api-version=' . API_VERSION;
36 8 return $endpoint . '/kv/' . _encode_component($key) . '?' . join('&', @query);
37 }
38
39 4 ▶ method for_settings ($key_filter = undef, $label_filter = undef) {
Subroutine for_settings: called CC=5 SCAR=16.1
Pod documented
40 4 my @query;
41 4 ▶ push @query, 'key=' . _encode_filter('key_filter', $key_filter)
Branch: 1 branch
BranchTrueFalseTotal
if defined $key_filter 1 3 4
42 if defined $key_filter;
43 4 ▶ push @query, 'label=' . _encode_label_filter($label_filter)
Branch: 1 branch
BranchTrueFalseTotal
if defined $label_filter 4 0 4
44 if defined $label_filter;
45 3 push @query, 'api-version=' . API_VERSION;
46 3 return $endpoint . '/kv?' . join('&', @query);
47 }
48
49 1 ▶ method for_labels ($name_filter = undef) {
Subroutine for_labels: called CC=3 SCAR=11.1
Pod documented
50 1 my @query;
51 1 ▶ push @query, 'name=' . _encode_filter('name_filter', $name_filter)
Branch: 1 branch
BranchTrueFalseTotal
if defined $name_filter 1 0 1
52 if defined $name_filter;
53 1 push @query, 'api-version=' . API_VERSION;
54 1 return $endpoint . '/labels?' . join('&', @query);
55 }
56
57 7 ▶ method for_snapshot ($name) {
Subroutine for_snapshot: called CC=1 SCAR=0.0
Pod documented
58 7 _validate_snapshot_name($name);
59 6 return $endpoint . '/snapshots/' . _encode_component($name)
60 . '?api-version=' . SNAPSHOT_API_VERSION;
61 }
62
63 2 ▶ method for_snapshots ($name_filter = undef, $status_filter = undef) {
Subroutine for_snapshots: called CC=12 SCAR=26.0
Pod documented
64 2 my @query;
65 2 ▶ push @query, 'name=' . _encode_filter('name_filter', $name_filter)
Branch: 1 branch
BranchTrueFalseTotal
if defined $name_filter 1 1 2
66 if defined $name_filter;
67 2 ▶ if (defined $status_filter) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $status_filter) 2 0 2
68 my @statuses = ref $status_filter eq 'ARRAY'
69 2 ▶ ? @{$status_filter}
Branch: 1 branch
BranchTrueFalseTotal
ref $status_filter eq 'ARRAY' ? : 1 1 2
70 : ($status_filter);
71 2 ▶ croak 'App Configuration snapshot status filter must contain one to five values'
Branch: 1 branch
BranchTrueFalseTotal
unless @statuses >= 1 and @statuses <= 5 0 2 2
Condition33%1/3
@statuses >= 1 and @statuses <= 5
!ll&&!rl&&r
002
MC/DC0%0/2
@statuses >= 1 and @statuses <= 5
@statuses >= 1 @statuses <= 5
Truth table33%1/3
A and B
A= @statuses >= 1B= @statuses <= 5
ABresult
0X0
100
111
72 unless @statuses >= 1 && @statuses <= 5;
73 2 for my $status (@statuses) {
74 3 ▶ croak 'App Configuration snapshot status filter is invalid'
Branch: 1 branch
BranchTrueFalseTotal
unless defined $status and not ref $status and $status =~ /\A(?:provisioning|ready|archived|failed)\z/u 1 2 3
Condition50%3/6
defined $status and not ref $status and $status =~ /\A(?:provisioning|ready|archived|failed)\z/u
!ll&&!rl&&r
012
defined $status and not ref $status
!ll&&!rl&&r
003
MC/DC33%1/3
defined $status and not ref $status and $status =~ /\A(?:provisioning|ready|archived|failed)\z/u
defined $status not ref $status $status =~ /\A(?:provisioning|ready|archived|failed)\z/u
Truth table50%2/4
A and not(B) and C
A= defined $statusB= not ref $statusC= $status =~ /\A(?:provisioning|ready|archived|failed)\z/u
ABCresult
0XX0
10X0
1100
1111
75 unless defined $status && !ref $status
76 && $status =~ /\A(?:provisioning|ready|archived|failed)\z/;
77 }
78 1 push @query, 'status=' . join(',', @statuses);
79 }
80 1 push @query, 'api-version=' . SNAPSHOT_API_VERSION;
81 1 return $endpoint . '/snapshots?' . join('&', @query);
82 }
83
84 1 ▶ method for_snapshot_settings ($name) {
Subroutine for_snapshot_settings: called CC=1 SCAR=0.0
Pod documented
85 1 _validate_snapshot_name($name);
86 1 return $endpoint . '/kv?snapshot=' . _encode_component($name)
87 . '&api-version=' . SNAPSHOT_API_VERSION;
88 }
89
90 3 ▶ method for_snapshot_operation ($location, $name) {
Subroutine for_snapshot_operation: called CC=21 SCAR=36.6
Pod documented
91 3 _validate_snapshot_name($name);
92 3 ▶ croak 'App Configuration snapshot operation location is required'
Branch: 1 branch
BranchTrueFalseTotal
unless defined $location and not ref $location and length $location 0 3 3
Condition33%2/6
defined $location and not ref $location and length $location
!ll&&!rl&&r
003
defined $location and not ref $location
!ll&&!rl&&r
003
MC/DC0%0/3
defined $location and not ref $location and length $location
defined $location not ref $location length $location
Truth table25%1/4
A and not(B) and C
A= defined $locationB= not ref $locationC= length $location
ABCresult
0XX0
10X0
1100
1111
93 unless defined $location && !ref $location && length $location;
94 3 ▶ croak 'App Configuration snapshot operation location contains unsafe characters'
Branch: 1 branch
BranchTrueFalseTotal
if $location =~ /[\x00-\x20\x7f]/u 0 3 3
95 if $location =~ /[\x00-\x20\x7f]/;
96 3 my $candidate = URI->new_abs($location, $endpoint . '/');
97 3 my $base = URI->new($endpoint);
98 3 ▶ croak 'App Configuration snapshot operation location changed origin'
Branch: 1 branch
BranchTrueFalseTotal
unless lc($candidate->scheme // "") eq lc($base->scheme // "") and lc($candidate->authority // "") eq lc($base->authority // "") 1 2 3
Condition54%6/11
lc($candidate->scheme // "") eq lc($base->scheme // "") and lc($candidate->authority // "") eq lc($base->authority // "")
!ll&&!rl&&r
102
$candidate->scheme // ""
l!l
30
$base->scheme // ""
l!l
30
$candidate->authority // ""
l!l
20
$base->authority // ""
l!l
20
MC/DC0%0/2
lc($candidate->scheme // "") eq lc($base->scheme // "") and lc($candidate->authority // "") eq lc($base->authority // "")
$candidate->scheme $candidate->authority
MC/DC0%0/1
$base->scheme // ""
$base->scheme
MC/DC0%0/1
$base->authority // ""
$base->authority
Truth table33%1/3
A and B
A= $candidate->schemeB= $candidate->authority
ABresult
0X0
100
111
Truth table50%1/2
A
A= $base->scheme
Aresult
11
00
Truth table50%1/2
A
A= $base->authority
Aresult
11
00
99 unless lc($candidate->scheme // '') eq lc($base->scheme // '')
100 && lc($candidate->authority // '') eq lc($base->authority // '');
101 2 ▶ croak 'App Configuration snapshot operation location must target /operations'
Branch: 1 branch
BranchTrueFalseTotal
unless ($candidate->path // "") eq "/operations" 0 2 2
Condition50%1/2
$candidate->path // ""
l!l
20
MC/DC0%0/1
$candidate->path // ""
$candidate->path
Truth table50%1/2
A
A= $candidate->path
Aresult
11
00
102 unless ($candidate->path // '') eq '/operations';
103 2 ▶ croak 'App Configuration snapshot operation location must not include a fragment'
Branch: 1 branch
BranchTrueFalseTotal
if defined $candidate->fragment 0 2 2
104 if defined $candidate->fragment;
105 2 my @query = $candidate->query_form;
106 2 my %values;
107 2 ▶ while (@query) {
Branch: 1 branch
BranchTrueFalseTotal
if (@query) 4 2 6
108 4 my ($key, $value) = splice @query, 0, 2;
109 4 push @{$values{$key}}, $value;
110 }
111 croak 'App Configuration snapshot operation location has an invalid snapshot name'
112 2 ▶ unless @{$values{snapshot} // []} == 1
Condition50%1/2
$values{"snapshot"} // []
l!l
20
MC/DC0%0/1
$values{"snapshot"} // []
$values{"snapshot"}
Truth table50%1/2
A
A= $values{"snapshot"}
Aresult
11
00
113 2 ▶ && $values{snapshot}[0] eq $name;
Branch: 1 branch
BranchTrueFalseTotal
unless @{$values{"snapshot"} // [];} == 1 and $values{"snapshot"}[0] eq $name 0 2 2
Condition33%1/3
@{$values{"snapshot"} // [];} == 1 and $values{"snapshot"}[0] eq $name
!ll&&!rl&&r
002
MC/DC0%0/2
@{$values{"snapshot"} // [];} == 1 and $values{"snapshot"}[0] eq $name
@{$values{"snapshot"} // [];} == 1 $values{"snapshot"}[0] eq $name
Truth table33%1/3
A and B
A= @{$values{"snapshot"} // [];} == 1B= $values{"snapshot"}[0] eq $name
ABresult
0X0
100
111
114 croak 'App Configuration snapshot operation location has an invalid api-version'
115 2 ▶ unless @{$values{'api-version'} // []} == 1
Condition50%1/2
$values{"api-version"} // []
l!l
20
MC/DC0%0/1
$values{"api-version"} // []
$values{"api-version"}
Truth table50%1/2
A
A= $values{"api-version"}
Aresult
11
00
116 2 ▶ && $values{'api-version'}[0] eq SNAPSHOT_API_VERSION;
Branch: 1 branch
BranchTrueFalseTotal
unless @{$values{"api-version"} // [];} == 1 and $values{"api-version"}[0] eq "2023-10-01" 0 2 2
Condition33%1/3
@{$values{"api-version"} // [];} == 1 and $values{"api-version"}[0] eq "2023-10-01"
!ll&&!rl&&r
002
MC/DC0%0/2
@{$values{"api-version"} // [];} == 1 and $values{"api-version"}[0] eq "2023-10-01"
@{$values{"api-version"} // [];} == 1 $values{"api-version"}[0] eq "2023-10-01"
Truth table33%1/3
A and B
A= @{$values{"api-version"} // [];} == 1B= $values{"api-version"}[0] eq "2023-10-01"
ABresult
0X0
100
111
117 2 return $candidate->as_string;
118 }
119
120 6 ▶ method for_next_link (
Subroutine for_next_link: called CC=24 SCAR=36.4
Pod documented
121 $next_link,
122 6 $expected_path = '/kv',
123 6 $api_version = API_VERSION,
124 ) {
125 6 ▶ croak 'App Configuration continuation link is required'
Branch: 1 branch
BranchTrueFalseTotal
unless defined $next_link and not ref $next_link and length $next_link 0 6 6
Condition33%2/6
defined $next_link and not ref $next_link and length $next_link
!ll&&!rl&&r
006
defined $next_link and not ref $next_link
!ll&&!rl&&r
006
MC/DC0%0/3
defined $next_link and not ref $next_link and length $next_link
defined $next_link not ref $next_link length $next_link
Truth table25%1/4
A and not(B) and C
A= defined $next_linkB= not ref $next_linkC= length $next_link
ABCresult
0XX0
10X0
1100
1111
126 unless defined $next_link && !ref $next_link && length $next_link;
127 6 ▶ croak 'App Configuration continuation expected path is invalid'
Branch: 1 branch
BranchTrueFalseTotal
unless $expected_path eq "/kv" or $expected_path eq "/labels" or $expected_path eq "/snapshots" 0 6 6
Condition83%5/6
$expected_path eq "/kv" or $expected_path eq "/labels" or $expected_path eq "/snapshots"
l!l&&r!l&&!r
510
$expected_path eq "/kv" or $expected_path eq "/labels"
l!l&&r!l&&!r
411
MC/DC0%0/3
$expected_path eq "/kv" or $expected_path eq "/labels" or $expected_path eq "/snapshots"
$expected_path eq "/kv" $expected_path eq "/labels" $expected_path eq "/snapshots"
Truth table75%3/4
A or B or C
A= $expected_path eq "/kv"B= $expected_path eq "/labels"C= $expected_path eq "/snapshots"
ABCresult
1XX1
01X1
0011
0000
128 unless $expected_path eq '/kv'
129 || $expected_path eq '/labels'
130 || $expected_path eq '/snapshots';
131 6 ▶ croak 'App Configuration continuation link exceeds 8192 bytes'
Branch: 1 branch
BranchTrueFalseTotal
if length $next_link > 8192 0 6 6
132 if length($next_link) > 8192;
133 6 ▶ croak 'App Configuration continuation link contains unsafe characters'
Branch: 1 branch
BranchTrueFalseTotal
if $next_link =~ /[\x00-\x20\x7f]/u 0 6 6
134 if $next_link =~ /[\x00-\x20\x7f]/;
135
136 6 my $uri = URI->new($next_link);
137 6 ▶ croak 'App Configuration continuation link must be relative'
Branch: 1 branch
BranchTrueFalseTotal
if defined $uri->scheme or defined $uri->authority 1 5 6
Condition66%2/3
defined $uri->scheme or defined $uri->authority
l!l&&r!l&&!r
105
MC/DC50%1/2
defined $uri->scheme or defined $uri->authority
defined $uri->scheme defined $uri->authority
Truth table66%2/3
A or B
A= defined $uri->schemeB= defined $uri->authority
ABresult
1X1
011
000
138 if defined $uri->scheme || defined $uri->authority;
139 5 ▶ croak "App Configuration continuation link must target $expected_path"
Branch: 1 branch
BranchTrueFalseTotal
unless ($uri->path // "") eq $expected_path 1 4 5
Condition50%1/2
$uri->path // ""
l!l
50
MC/DC0%0/1
$uri->path // ""
$uri->path
Truth table50%1/2
A
A= $uri->path
Aresult
11
00
140 unless ($uri->path // '') eq $expected_path;
141 4 ▶ croak 'App Configuration continuation link must not include a fragment'
Branch: 1 branch
BranchTrueFalseTotal
if defined $uri->fragment 0 4 4
142 if defined $uri->fragment;
143
144 4 my @query = $uri->query_form;
145 4 my @versions;
146 my @continuations;
147 4 ▶ while (@query) {
Branch: 1 branch
BranchTrueFalseTotal
if (@query) 14 4 18
148 14 my ($name, $value) = splice @query, 0, 2;
149 14 ▶ push @versions, $value if $name eq 'api-version';
Branch: 1 branch
BranchTrueFalseTotal
if $name eq "api-version" 4 10 14
150 14 ▶ push @continuations, $value if $name eq 'after';
Branch: 1 branch
BranchTrueFalseTotal
if $name eq "after" 4 10 14
151 }
152 4 ▶ croak 'App Configuration continuation link has an invalid api-version'
Branch: 1 branch
BranchTrueFalseTotal
unless @versions == 1 and $versions[0] eq $api_version 0 4 4
Condition33%1/3
@versions == 1 and $versions[0] eq $api_version
!ll&&!rl&&r
004
MC/DC0%0/2
@versions == 1 and $versions[0] eq $api_version
@versions == 1 $versions[0] eq $api_version
Truth table33%1/3
A and B
A= @versions == 1B= $versions[0] eq $api_version
ABresult
0X0
100
111
153 unless @versions == 1 && $versions[0] eq $api_version;
154 4 ▶ croak 'App Configuration continuation link has an invalid after token'
Branch: 1 branch
BranchTrueFalseTotal
unless @continuations == 1 and defined $continuations[0] and length $continuations[0] 0 4 4
Condition33%2/6
@continuations == 1 and defined $continuations[0] and length $continuations[0]
!ll&&!rl&&r
004
@continuations == 1 and defined $continuations[0]
!ll&&!rl&&r
004
MC/DC0%0/3
@continuations == 1 and defined $continuations[0] and length $continuations[0]
@continuations == 1 defined $continuations[0] length $continuations[0]
Truth table25%1/4
A and B and C
A= @continuations == 1B= defined $continuations[0]C= length $continuations[0]
ABCresult
0XX0
10X0
1100
1111
155 unless @continuations == 1 && defined $continuations[0]
156 && length $continuations[0];
157
158 4 return $endpoint . $uri->path_query;
159 }
160
161 6 ▶ sub _encode_filter ($name, $value) {
Subroutine _encode_filter: called CC=4 SCAR=14.0
162 6 ▶ croak "App Configuration $name must be a scalar"
Branch: 1 branch
BranchTrueFalseTotal
if ref $value 0 6 6
163 if ref $value;
164 6 ▶ croak "App Configuration $name must not be empty"
Branch: 1 branch
BranchTrueFalseTotal
unless length $value 0 6 6
165 unless length $value;
166 6 ▶ croak "App Configuration $name contains control characters"
Branch: 1 branch
BranchTrueFalseTotal
if $value =~ /[\x00-\x1f\x7f]/u 1 5 6
167 if $value =~ /[\x00-\x1f\x7f]/;
168
169 5 my $bytes = $value;
170 5 utf8::encode($bytes);
171 5 $bytes =~ s/([^A-Za-z0-9\-._~*,])/sprintf('%%%02X', ord $1)/ge;
172 5 return $bytes;
173 }
174
175 4 ▶ sub _encode_label_filter ($value) {
Subroutine _encode_label_filter: called CC=3 SCAR=11.1
176 4 ▶ return '%00' if !ref $value && $value eq "\0";
Branch: 1 branch
BranchTrueFalseTotal
if not ref $value and $value eq "\0" 1 3 4
Condition66%2/3
not ref $value and $value eq "\0"
!ll&&!rl&&r
031
MC/DC50%1/2
not ref $value and $value eq "\0"
not ref $value $value eq "\0"
Truth table66%2/3
not(A) and B
A= not ref $valueB= $value eq "\0"
ABresult
0X0
100
111
177 3 return _encode_filter('label_filter', $value);
178 }
179
180 15 ▶ sub _encode_component ($value) {
Subroutine _encode_component: called CC=1 SCAR=0.1
181 15 my $bytes = $value;
182 15 utf8::encode($bytes);
183 0 $bytes =~ s/([^A-Za-z0-9\-._~])/sprintf('%%%02X', ord $1)/ge;
184 15 return $bytes;
185 }
186
187 11 ▶ sub _validate_snapshot_name ($name) {
Subroutine _validate_snapshot_name: called CC=8 SCAR=25.2
188 11 ▶ croak 'App Configuration snapshot name must be a non-empty scalar'
Branch: 1 branch
BranchTrueFalseTotal
unless defined $name and not ref $name and length $name 0 11 11
Condition33%2/6
defined $name and not ref $name and length $name
!ll&&!rl&&r
0011
defined $name and not ref $name
!ll&&!rl&&r
0011
MC/DC0%0/3
defined $name and not ref $name and length $name
defined $name not ref $name length $name
Truth table25%1/4
A and not(B) and C
A= defined $nameB= not ref $nameC= length $name
ABCresult
0XX0
10X0
1100
1111
189 unless defined $name && !ref $name && length $name;
190 11 ▶ croak "App Configuration snapshot name must not be '.' or '..'"
Branch: 1 branch
BranchTrueFalseTotal
if $name eq "." or $name eq ".." 0 11 11
Condition33%1/3
$name eq "." or $name eq ".."
l!l&&r!l&&!r
0011
MC/DC0%0/2
$name eq "." or $name eq ".."
$name eq "." $name eq ".."
Truth table33%1/3
A or B
A= $name eq "."B= $name eq ".."
ABresult
1X1
011
000
191 if $name eq '.' || $name eq '..';
192 11 ▶ croak 'App Configuration snapshot name contains control characters'
Branch: 1 branch
BranchTrueFalseTotal
if $name =~ /[\x00-\x1f\x7f]/u 0 11 11
193 if $name =~ /[\x00-\x1f\x7f]/;
194 11 ▶ croak 'App Configuration snapshot name exceeds 256 characters'
Branch: 1 branch
BranchTrueFalseTotal
if length $name > 256 1 10 11
195 if length $name > 256;
196 10 return $name;
197 }
198 }
199
200 2 1;
201
202 __END__
« SDK/Core/Credential/Sas.pm ↑ Summary SDK/Core.pm »