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