| 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 | class Azure::SDK::Storage::Tables::TransactionResultItem { | |||||||||||||||||||||||||||||||||||||||||
| 6 | 6 | ▶ | use Carp qw(croak); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||||||||||||||||
| 8 | 6 | field $status :param :reader; | |||||||||||||||||||||||||||||||||||||||||
| 9 | 6 | field $content_id :param :reader = undef; | |||||||||||||||||||||||||||||||||||||||||
| 10 | 6 | field $etag :param :reader = undef; | |||||||||||||||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||||||||||||||||
| 12 | 5 | ▶ | ADJUST { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=8 SCAR=25.2
| |||||||||||||||||||||||||||||||||||||||||||
| 13 | 5 | ▶ | croak 'Table transaction result status must be numeric' | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
defined $status and not ref $status and $status =~ /\A[0-9]+\z/u
defined $status and not ref $status
MC/DC0%0/3
defined $status and not ref $status and $status =~ /\A[0-9]+\z/u
defined $status
not ref $status
$status =~ /\A[0-9]+\z/u
Truth table25%1/4
A and not(B) and C
A= defined $statusB= not ref $statusC= $status =~ /\A[0-9]+\z/u
| |||||||||||||||||||||||||||||||||||||||||||
| 14 | unless defined $status && !ref($status) && $status =~ /\A[0-9]+\z/; | ||||||||||||||||||||||||||||||||||||||||||
| 15 | 5 | $status = 0 + $status; | |||||||||||||||||||||||||||||||||||||||||
| 16 | 5 | ▶ | croak 'Table transaction result content_id must be numeric' | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition50%3/6
defined $content_id and ref $content_id || !($content_id =~ /\A[0-9]+\z/u)
ref $content_id or not $content_id =~ /\A[0-9]+\z/u
MC/DC0%0/3
defined $content_id and ref $content_id || !($content_id =~ /\A[0-9]+\z/u)
defined $content_id
ref $content_id
not $content_id =~ /\A[0-9]+\z/u
Truth table50%2/4
A and B or not(C)
A= defined $content_idB= ref $content_idC= not $content_id =~ /\A[0-9]+\z/u
| |||||||||||||||||||||||||||||||||||||||||||
| 17 | if defined $content_id | ||||||||||||||||||||||||||||||||||||||||||
| 18 | && (ref($content_id) || $content_id !~ /\A[0-9]+\z/); | ||||||||||||||||||||||||||||||||||||||||||
| 19 | 5 | ▶ | $content_id = 0 + $content_id if defined $content_id; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 20 | } | ||||||||||||||||||||||||||||||||||||||||||
| 21 | } | ||||||||||||||||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||||||||||||||||
| 23 | 6 | 1; | |||||||||||||||||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||||||||||||||||
| 25 | __END__ | ||||||||||||||||||||||||||||||||||||||||||