Conveyor/YAML/Active/MakeWholeTicketBlock.pm

filter: Statementstmt 72.7% 16 / 22 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 85.7% 6 / 7 Podpod 100% 1 / 1 totaltotal 65.7% 23 / 35 CC 2 SCAR 8.1
CC
2
Cov
64%
yaml_activate
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« Conveyor/YAML/Active/Payload/Common.pm ↑ Summary Conveyor/YAML/Marshall/Ticket.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::MakeWholeTicketBlock;
6 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 $Data::Conveyor::YAML::Active::MakeWholeTicketBlock::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=2 SCAR=17.9
Pod documented
15 0 my ($self, $phase) = @_;
16 0 assert_hashref($self);
17 0 my $hash = hash_activate($self, $phase);
18 0 my %args = %$hash;
19 0 delete @args{qw/ticket_no prefix suffix/};
20 { ticket_no => $hash->{ticket_no}
21 || $self->delegate->make_obj('test_ticket')->gen_temp_ticket_no(
22 prefix => $hash->{prefix},
23 suffix => $hash->{suffix},
24 0 ▶ ),
Condition0%0/3
$hash->{'ticket_no'} || $self->delegate->make_obj('test_ticket')->gen_temp_ticket_no('prefix', $hash->{'prefix'}, 'suffix', $hash->{'suffix'})
l!l&&r!l&&!r
000
MC/DC0%0/2
$hash->{'ticket_no'} || $self->delegate->make_obj('test_ticket')->gen_temp_ticket_no('prefix', $hash->{'prefix'}, 'suffix', $hash->{'suffix'})
$hash->{'ticket_no'} $self->delegate->make_obj('test_ticket')->gen_temp_ticket_no('prefix', $hash->{'prefix'}, 'suffix', $hash->{'suffix'})
Truth table0%0/3
A || B
A= $hash->{'ticket_no'}B= $self->delegate->make_obj('test_ticket')->gen_temp_ticket_no('prefix', $hash->{'prefix'}, 'suffix', $hash->{'suffix'})
ABresult
1X1
011
000
25 %args,
26 };
27 }
28 1 1;
29  
30  
31 __END__
« Conveyor/YAML/Active/Payload/Common.pm ↑ Summary Conveyor/YAML/Marshall/Ticket.pm »