Conveyor/YAML/Marshall/Ticket.pm

filter: Statementstmt 76.1% 16 / 21 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 85.7% 6 / 7 Podpod 100% 1 / 1 totaltotal 67.6% 23 / 34 CC 2 SCAR 8.1
CC
2
Cov
67%
yaml_load
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« Conveyor/YAML/Active/MakeWholeTicketBlock.pm ↑ Summary Conveyor/YAML/Active/Payload/Lock.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::Ticket;
6 2 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 $Data::Conveyor::YAML::Marshall::Ticket::VERSION = '1.103130';
8 }
9 # ABSTRACT: Stage-based conveyor-belt-like ticket handling system
10 2 ▶use YAML::Marshall 'ticket';
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 %args = %$node;
17 0 delete @args{qw/ticket_no prefix suffix/};
18 { ticket_no => $node->{ticket_no}
19 || $self->delegate->make_obj('test_ticket')->gen_temp_ticket_no(
20 prefix => $node->{prefix},
21 suffix => $node->{suffix},
22 0 ▶ ),
Condition0%0/3
$node->{'ticket_no'} || $self->delegate->make_obj('test_ticket')->gen_temp_ticket_no('prefix', $node->{'prefix'}, 'suffix', $node->{'suffix'})
l!l&&r!l&&!r
000
MC/DC0%0/2
$node->{'ticket_no'} || $self->delegate->make_obj('test_ticket')->gen_temp_ticket_no('prefix', $node->{'prefix'}, 'suffix', $node->{'suffix'})
$node->{'ticket_no'} $self->delegate->make_obj('test_ticket')->gen_temp_ticket_no('prefix', $node->{'prefix'}, 'suffix', $node->{'suffix'})
Truth table0%0/3
A || B
A= $node->{'ticket_no'}B= $self->delegate->make_obj('test_ticket')->gen_temp_ticket_no('prefix', $node->{'prefix'}, 'suffix', $node->{'suffix'})
ABresult
1X1
011
000
23 %args,
24 };
25 }
26 2 1;
27  
28  
29 __END__
« Conveyor/YAML/Active/MakeWholeTicketBlock.pm ↑ Summary Conveyor/YAML/Active/Payload/Lock.pm »