| 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::Storage::Tables::Entity; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | 6 | class Azure::SDK::Storage::Tables::TransactionOperation { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | 6 | ▶ | use Carp qw(croak); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | 6 | ▶ | use Scalar::Util qw(blessed); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | 6 | field $action :param :reader; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | 6 | field $entity :param :reader; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | 6 | field $if_match :param :reader = undef; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | 112 | ▶ | ADJUST { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=9 SCAR=29.5
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | 112 | ▶ | croak 'Table transaction action is invalid' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $action and $action =~ /\A(?:insert|replace|merge|delete|insert_or_replace|insert_or_merge)\z/u
MC/DC0%0/2
defined $action and $action =~ /\A(?:insert|replace|merge|delete|insert_or_replace|insert_or_merge)\z/u
defined $action
$action =~ /\A(?:insert|replace|merge|delete|insert_or_replace|insert_or_merge)\z/u
Truth table33%1/3
A and B
A= defined $actionB= $action =~ /\A(?:insert|replace|merge|delete|insert_or_replace|insert_or_merge)\z/u
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | unless defined $action | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | && $action =~ /\A(?:insert|replace|merge|delete|insert_or_replace|insert_or_merge)\z/; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | 112 | ▶ | croak 'Table transaction operation requires an Entity' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
builtin::blessed($entity) and $entity->isa("Azure::SDK::Storage::Tables::Entity")
MC/DC0%0/2
builtin::blessed($entity) and $entity->isa("Azure::SDK::Storage::Tables::Entity")
builtin::blessed($entity)
$entity->isa("Azure::SDK::Storage::Tables::Entity")
Truth table33%1/3
A and B
A= builtin::blessed($entity)B= $entity->isa("Azure::SDK::Storage::Tables::Entity")
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | unless blessed($entity) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | && $entity->isa('Azure::SDK::Storage::Tables::Entity'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | 112 | ▶ | croak 'Table transaction if_match must not contain control characters' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition44%4/9
defined $if_match and ref $if_match || !length($if_match) || $if_match =~ /[\x00-\x1f\x7f]/u
ref $if_match or not length $if_match or $if_match =~ /[\x00-\x1f\x7f]/u
ref $if_match or not length $if_match
MC/DC0%0/4
defined $if_match and ref $if_match || !length($if_match) || $if_match =~ /[\x00-\x1f\x7f]/u
defined $if_match
ref $if_match
not length $if_match
$if_match =~ /[\x00-\x1f\x7f]/u
Truth table40%2/5
A and B or not(C) or D
A= defined $if_matchB= ref $if_matchC= not length $if_matchD= $if_match =~ /[\x00-\x1f\x7f]/u
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | if defined $if_match | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | && (ref($if_match) || !length($if_match) || $if_match =~ /[\x00-\x1f\x7f]/); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | 6 | 1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | __END__ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||