| 1 | 3 | ▶ | use v5.36; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 2 | 3 | ▶ | use feature 'class'; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 3 | 3 | ▶ | no warnings 'experimental::class'; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||||||||||||||||
| 5 | 3 | class Azure::SDK::Storage::Queues::Message { | |||||||||||||||||||||||||||||||||||||||||
| 6 | 3 | ▶ | use Carp qw(croak); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||||||||||||||||
| 8 | 3 | field $message_id :param :reader; | |||||||||||||||||||||||||||||||||||||||||
| 9 | 3 | field $message_text :param :reader = undef; | |||||||||||||||||||||||||||||||||||||||||
| 10 | 3 | field $pop_receipt :param :reader = undef; | |||||||||||||||||||||||||||||||||||||||||
| 11 | 3 | field $insertion_time :param :reader = undef; | |||||||||||||||||||||||||||||||||||||||||
| 12 | 3 | field $expiration_time :param :reader = undef; | |||||||||||||||||||||||||||||||||||||||||
| 13 | 3 | field $time_next_visible :param :reader = undef; | |||||||||||||||||||||||||||||||||||||||||
| 14 | 3 | field $dequeue_count :param :reader = undef; | |||||||||||||||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||||||||||||||||
| 16 | 9 | ▶ | ADJUST { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=8 SCAR=23.1
| |||||||||||||||||||||||||||||||||||||||||||
| 17 | 9 | ▶ | croak 'Queue message_id is required' | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
defined $message_id and not ref $message_id and length $message_id
defined $message_id and not ref $message_id
MC/DC0%0/3
defined $message_id and not ref $message_id and length $message_id
defined $message_id
not ref $message_id
length $message_id
Truth table25%1/4
A and not(B) and C
A= defined $message_idB= not ref $message_idC= length $message_id
| |||||||||||||||||||||||||||||||||||||||||||
| 18 | unless defined $message_id && !ref $message_id && length $message_id; | ||||||||||||||||||||||||||||||||||||||||||
| 19 | 9 | ▶ | croak 'Queue pop_receipt must not be empty' | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
defined $pop_receipt and not length $pop_receipt
MC/DC0%0/2
defined $pop_receipt and not length $pop_receipt
defined $pop_receipt
not length $pop_receipt
Truth table66%2/3
A and not(B)
A= defined $pop_receiptB= not length $pop_receipt
| |||||||||||||||||||||||||||||||||||||||||||
| 20 | if defined $pop_receipt && !length $pop_receipt; | ||||||||||||||||||||||||||||||||||||||||||
| 21 | 9 | ▶ | if (defined $dequeue_count) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 22 | 6 | ▶ | croak 'Queue dequeue_count must be a non-negative integer' | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 23 | unless $dequeue_count =~ /\A[0-9]+\z/; | ||||||||||||||||||||||||||||||||||||||||||
| 24 | 5 | $dequeue_count = 0 + $dequeue_count; | |||||||||||||||||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||||||||||||||||
| 26 | } | ||||||||||||||||||||||||||||||||||||||||||
| 27 | } | ||||||||||||||||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||||||||||||||||
| 29 | 3 | 1; | |||||||||||||||||||||||||||||||||||||||||
| 30 | |||||||||||||||||||||||||||||||||||||||||||
| 31 | __END__ | ||||||||||||||||||||||||||||||||||||||||||