SDK/Core/Context.pm

filter: Statementstmt 100% 19 / 19 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 3 / 3 totaltotal 100% 30 / 30 CC 3 SCAR 5.6
CC
3
Cov
100%
options_for
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« SDK/Core/Response.pm ↑ Summary SDK/Core/Credential/StaticToken.pm »
1 20 ▶use v5.36;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 20 ▶use feature 'class';
Subroutine BEGIN: called CC=1 SCAR=0.0
3 20 ▶no warnings 'experimental::class';
Subroutine BEGIN: called CC=1 SCAR=0.0
4
5 20 class Azure::SDK::Core::Context {
6 20 field $request_id :param :reader = undef;
7 20 field $options :param :reader = {};
8 20 field $attempt :reader = 0;
9
10 116 ▶ method options_for ($key, $default = undef) {
Subroutine options_for: called CC=3 SCAR=11.0
Pod documented
11 116 ▶ return exists $options->{$key} ? $options->{$key} : $default;
Branch: 1 branch
BranchTrueFalseTotal
exists $options->{$key} ? : 2 114 116
12 }
13
14 119 ▶ method set_request_id ($value) {
Subroutine set_request_id: called CC=1 SCAR=0.0
Pod documented
15 119 $request_id = $value;
16 119 return $self;
17 }
18
19 173 ▶ method begin_attempt () {
Subroutine begin_attempt: called CC=1 SCAR=0.0
Pod documented
20 173 $attempt++;
21 173 return $attempt;
22 }
23 }
24
25 20 1;
26
27 __END__
« SDK/Core/Response.pm ↑ Summary SDK/Core/Credential/StaticToken.pm »