Conveyor/Template/Factory.pm

filter: Statementstmt 82.6% 19 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod 100% 1 / 1 totaltotal 84.3% 27 / 32 CC 1 SCAR 1.2
CC
1
Cov
83%
gen_handler
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Conveyor/Transaction/Factory.pm ↑ Summary Conveyor/Exception/Internal/NoSuchTemplateHandler.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::Template::Factory;
6 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 $Data::Conveyor::Template::Factory::VERSION = '1.103130';
8 }
9 # ABSTRACT: Stage-based conveyor-belt-like ticket handling system
10  
11 # Factory class for all template classes.
12 1 ▶use Error::Hierarchy::Util 'assert_defined';
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use Class::Scaffold::Exception::Util 'assert_object_type';
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use parent 'Class::Scaffold::Factory';
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 0 ▶sub gen_handler {
Subroutine gen_handler: not called CC=1 SCAR=6.9
Pod documented
17 0 my ($self, $handler_type, %args) = @_;
18 0 assert_defined $args{ticket}, 'called without ticket.';
19 0 assert_object_type $args{ticket}, 'ticket';
20 0 $self->SUPER::gen_handler($handler_type, [ $args{ticket}->type ], %args);
21 }
22 1 1;
23  
24  
25 __END__
« Conveyor/Transaction/Factory.pm ↑ Summary Conveyor/Exception/Internal/NoSuchTemplateHandler.pm »