| 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'})
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'})
| |||||||||||||||||||||
| 23 | %args, | ||||||||||||||||||||
| 24 | }; | ||||||||||||||||||||
| 25 | } | ||||||||||||||||||||
| 26 | 2 | 1; | |||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | __END__ | ||||||||||||||||||||