Conveyor/YAML/Marshall/Payload/Transaction.pm

filter: Statementstmt 59.2% 16 / 27 Branchbran n/a Conditioncond 0.0% 0 / 9 MC/DCmcdc 0.0% 0 / 6 Subroutinesub 85.7% 6 / 7 Podpod 100% 1 / 1 totaltotal 46.0% 23 / 50 CC 5 SCAR 26.5
CC
5
Cov
44%
yaml_load
30.0
BEGIN
1.0
BEGIN
1.0
CRAP 14.2
« Conveyor/YAML/Active/Payload/Transaction.pm ↑ Summary Conveyor/Ticket/Processor/Conveyor.pm »
1 2 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Data::Conveyor::YAML::Marshall::Payload::Transaction;
6 2 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 $Data::Conveyor::YAML::Marshall::Payload::Transaction::VERSION = '1.103130';
8 }
9 # ABSTRACT: Stage-based conveyor-belt-like ticket handling system
10 2 ▶use YAML::Marshall 'payload/transaction';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 ▶use parent 'Class::Scaffold::YAML::Marshall';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 0 ▶sub yaml_load {
Subroutine yaml_load: not called CC=5 SCAR=34.0
Pod documented
14 0 my $self = shift;
15 0 my $node = $self->SUPER::yaml_load(@_);
16 0 my $payload_item = $self->delegate->make_obj('payload_transaction');
17 0 for ($payload_item->transaction) {
18 0 $_->object_type($node->{object_type});
19 0 $_->command($node->{command});
20 0 ▶ $_->type($node->{type} || $self->delegate->TXT_EXPLICIT);
Condition0%0/3
$node->{'type'} || $self->delegate->TXT_EXPLICIT
l!l&&r!l&&!r
000
MC/DC0%0/2
$node->{'type'} || $self->delegate->TXT_EXPLICIT
$node->{'type'} $self->delegate->TXT_EXPLICIT
Truth table0%0/3
A || B
A= $node->{'type'}B= $self->delegate->TXT_EXPLICIT
ABresult
1X1
011
000
21 0 ▶ $_->status($node->{status} || $self->delegate->TXS_RUNNING);
Condition0%0/3
$node->{'status'} || $self->delegate->TXS_RUNNING
l!l&&r!l&&!r
000
MC/DC0%0/2
$node->{'status'} || $self->delegate->TXS_RUNNING
$node->{'status'} $self->delegate->TXS_RUNNING
Truth table0%0/3
A || B
A= $node->{'status'}B= $self->delegate->TXS_RUNNING
ABresult
1X1
011
000
22 0 ▶ $_->necessity($node->{necessity} || $self->delegate->TXN_MANDATORY);
Condition0%0/3
$node->{'necessity'} || $self->delegate->TXN_MANDATORY
l!l&&r!l&&!r
000
MC/DC0%0/2
$node->{'necessity'} || $self->delegate->TXN_MANDATORY
$node->{'necessity'} $self->delegate->TXN_MANDATORY
Truth table0%0/3
A || B
A= $node->{'necessity'}B= $self->delegate->TXN_MANDATORY
ABresult
1X1
011
000
23 0 $_->payload_item($node->{item});
24 }
25 0 $payload_item;
26 }
27 2 1;
28  
29  
30 __END__
« Conveyor/YAML/Active/Payload/Transaction.pm ↑ Summary Conveyor/Ticket/Processor/Conveyor.pm »