SDK/Storage/Tables/TransactionError.pm

filter: Statementstmt 100% 19 / 19 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 2 / 6 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 77.7% 28 / 36 CC 4 SCAR 11.7
CC
4
Cov
81%
__ANON__
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.2
« SDK/Core/Request.pm ↑ Summary SDK/Core/Policy/Headers.pm »
1 6 ▶use v5.36;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 6 ▶use feature 'class';
Subroutine BEGIN: called CC=1 SCAR=0.0
3 6 ▶no warnings 'experimental::class';
Subroutine BEGIN: called CC=1 SCAR=0.0
4
5 6 ▶use Azure::SDK::Core::Error;
Subroutine BEGIN: called CC=1 SCAR=0.0
6
7 6 class Azure::SDK::Storage::Tables::TransactionError :isa(Azure::SDK::Core::Error) {
8 6 ▶ use Carp qw(croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
9
10 6 field $operation_index :param :reader;
11
12 2 ▶ ADJUST {
Subroutine __ANON__: called CC=4 SCAR=17.9
13 2 ▶ croak 'Table transaction error operation_index must be a non-negative integer'
Branch: 1 branch
BranchTrueFalseTotal
unless defined $operation_index and not ref $operation_index and $operation_index =~ /\A[0-9]+\z/u 0 2 2
Condition33%2/6
defined $operation_index and not ref $operation_index and $operation_index =~ /\A[0-9]+\z/u
!ll&&!rl&&r
002
defined $operation_index and not ref $operation_index
!ll&&!rl&&r
002
MC/DC0%0/3
defined $operation_index and not ref $operation_index and $operation_index =~ /\A[0-9]+\z/u
defined $operation_index not ref $operation_index $operation_index =~ /\A[0-9]+\z/u
Truth table25%1/4
A and not(B) and C
A= defined $operation_indexB= not ref $operation_indexC= $operation_index =~ /\A[0-9]+\z/u
ABCresult
0XX0
10X0
1100
1111
14 unless defined $operation_index
15 && !ref($operation_index)
16 && $operation_index =~ /\A[0-9]+\z/;
17 2 $operation_index = 0 + $operation_index;
18 }
19 }
20
21 6 1;
22
23 __END__
« SDK/Core/Request.pm ↑ Summary SDK/Core/Policy/Headers.pm »