Conveyor/Service/Result/Scalar.pm

filter: Statementstmt 82.6% 19 / 23 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod 100% 1 / 1 totaltotal 79.4% 27 / 34 CC 2 SCAR 7.5
CC
2
Cov
76%
result_as_string
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.1
« Conveyor/Ticket/Payload/Instruction/Factory.pm ↑ Summary Conveyor/App/Test/Stage/TxSelector.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::Service::Result::Scalar;
6 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 $Data::Conveyor::Service::Result::Scalar::VERSION = '1.103130';
8 }
9 # ABSTRACT: Stage-based conveyor-belt-like ticket handling system
10  
11 1 ▶use YAML;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use parent 'Data::Conveyor::Service::Result';
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use constant DEFAULTS => (result => '',);
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 0 ▶sub result_as_string {
Subroutine result_as_string: not called CC=2 SCAR=17.9
Pod documented
16 0 my $self = shift;
17 0 ▶ if (ref $self->result) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $self->result) { } 0 0 0
18 0 Dump scalar $self->result;
19 } else {
20 0 scalar $self->result;
21 }
22 }
23 1 1;
24  
25  
26 __END__
« Conveyor/Ticket/Payload/Instruction/Factory.pm ↑ Summary Conveyor/App/Test/Stage/TxSelector.pm »