Conveyor/YAML/Active/Payload/Transaction.pm

filter: Statementstmt 57.1% 16 / 28 Branchbran n/a Conditioncond 0.0% 0 / 9 MC/DCmcdc 0.0% 0 / 6 Subroutinesub 85.7% 6 / 7 Podpod 100% 1 / 1 totaltotal 45.1% 23 / 51 CC 5 SCAR 26.5
CC
5
Cov
43%
yaml_activate
30.0
BEGIN
1.0
BEGIN
1.0
CRAP 14.2
« Conveyor/Stage/TransactionIterator.pm ↑ Summary Conveyor/YAML/Marshall/Payload/Transaction.pm »
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
l!l&&r!l&&!r
000
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
ABresult
1X1
011
000
23 0 ▶ $_->status($hash->{status} || $self->delegate->TXS_RUNNING);
Condition0%0/3
$hash->{'status'} || $self->delegate->TXS_RUNNING
l!l&&r!l&&!r
000
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
ABresult
1X1
011
000
24 0 ▶ $_->necessity($hash->{necessity} || $self->delegate->TXN_MANDATORY);
Condition0%0/3
$hash->{'necessity'} || $self->delegate->TXN_MANDATORY
l!l&&r!l&&!r
000
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
ABresult
1X1
011
000
25 0 $_->payload_item($hash->{item});
26 }
27 0 $payload_item;
28 }
29 1 1;
30  
31  
32 __END__
« Conveyor/Stage/TransactionIterator.pm ↑ Summary Conveyor/YAML/Marshall/Payload/Transaction.pm »