Conveyor/YAML/Marshall/Payload/Lock.pm

filter: Statementstmt 72.7% 16 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 100% 1 / 1 totaltotal 71.8% 23 / 32 CC 2 SCAR 8.1
CC
2
Cov
67%
yaml_load
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« Conveyor/YAML/Marshall/Payload/Common.pm ↑ Summary Conveyor/Service/Result/Container.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::Lock;
6 2 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 $Data::Conveyor::YAML::Marshall::Payload::Lock::VERSION = '1.103130';
8 }
9 # ABSTRACT: Stage-based conveyor-belt-like ticket handling system
10 2 ▶use YAML::Marshall 'payload/lock';
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=2 SCAR=17.9
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_lock');
17 0 ▶ while (my ($key, $value) = each %$node) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %$node) 0 0 0
18 0 $payload_item->lock->$key($value);
19 }
20 0 $payload_item;
21 }
22 2 1;
23  
24  
25 __END__
« Conveyor/YAML/Marshall/Payload/Common.pm ↑ Summary Conveyor/Service/Result/Container.pm »