| 1 | 1 | ▶ | use 5.008; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | package Data::Conveyor::YAML::Active::Payload::Transaction; | ||||||||||||||||||||
| 6 | 1 | ▶ | BEGIN { | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 7 | 1 | $Data::Conveyor::YAML::Active::Payload::Transaction::VERSION = '1.103130'; | |||||||||||||||||||
| 8 | } | ||||||||||||||||||||
| 9 | # ABSTRACT: Stage-based conveyor-belt-like ticket handling system | ||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 1 | ▶ | use YAML::Active qw/assert_hashref hash_activate/; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 12 | 1 | ▶ | use parent 'Class::Scaffold::YAML::Active'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | 0 | ▶ | sub yaml_activate { | ||||||||||||||||||
|
Subroutine
yaml_activate: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||||||||||
| 15 | 0 | my ($self, $phase) = @_; | |||||||||||||||||||
| 16 | 0 | assert_hashref($self); | |||||||||||||||||||
| 17 | 0 | my $hash = hash_activate($self, $phase); | |||||||||||||||||||
| 18 | 0 | my $payload_item = $self->delegate->make_obj('payload_transaction'); | |||||||||||||||||||
| 19 | 0 | for ($payload_item->transaction) { | |||||||||||||||||||
| 20 | 0 | $_->object_type($hash->{object_type}); | |||||||||||||||||||
| 21 | 0 | $_->command($hash->{command}); | |||||||||||||||||||
| 22 | 0 | ▶ | $_->type($hash->{type} || $self->delegate->TXT_EXPLICIT); | ||||||||||||||||||
|
Condition0%0/3
$hash->{'type'} || $self->delegate->TXT_EXPLICIT
MC/DC0%0/2
$hash->{'type'} || $self->delegate->TXT_EXPLICIT
$hash->{'type'}
$self->delegate->TXT_EXPLICIT
Truth table0%0/3
A || B
A= $hash->{'type'}B= $self->delegate->TXT_EXPLICIT
| |||||||||||||||||||||
| 23 | 0 | ▶ | $_->status($hash->{status} || $self->delegate->TXS_RUNNING); | ||||||||||||||||||
|
Condition0%0/3
$hash->{'status'} || $self->delegate->TXS_RUNNING
MC/DC0%0/2
$hash->{'status'} || $self->delegate->TXS_RUNNING
$hash->{'status'}
$self->delegate->TXS_RUNNING
Truth table0%0/3
A || B
A= $hash->{'status'}B= $self->delegate->TXS_RUNNING
| |||||||||||||||||||||
| 24 | 0 | ▶ | $_->necessity($hash->{necessity} || $self->delegate->TXN_MANDATORY); | ||||||||||||||||||
|
Condition0%0/3
$hash->{'necessity'} || $self->delegate->TXN_MANDATORY
MC/DC0%0/2
$hash->{'necessity'} || $self->delegate->TXN_MANDATORY
$hash->{'necessity'}
$self->delegate->TXN_MANDATORY
Truth table0%0/3
A || B
A= $hash->{'necessity'}B= $self->delegate->TXN_MANDATORY
| |||||||||||||||||||||
| 25 | 0 | $_->payload_item($hash->{item}); | |||||||||||||||||||
| 26 | } | ||||||||||||||||||||
| 27 | 0 | $payload_item; | |||||||||||||||||||
| 28 | } | ||||||||||||||||||||
| 29 | 1 | 1; | |||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | __END__ | ||||||||||||||||||||