Conveyor/YAML/Active/Tx.pm

filter: Statementstmt 72.7% 16 / 22 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 12 MC/DCmcdc 0.0% 0 / 8 Subroutinesub 75.0% 6 / 8 Podpod 100% 2 / 2 totaltotal 44.4% 24 / 54 CC 6 SCAR 30.0
CC
6
Cov
44%
yaml_activate
42.0
get_objecttype
2.0
BEGIN
1.0
CRAP 20.0
« Conveyor/Service/Interface/SOAP.pm ↑ Summary Conveyor/App/Dispatch.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::Tx;
6 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 $Data::Conveyor::YAML::Active::Tx::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=6 SCAR=37.4
Pod documented
15 0 my ($self, $phase) = @_;
16 0 assert_hashref($self);
17 0 my $hash = hash_activate($self, $phase);
18 { object_type => $hash->{object_type}
19 || get_objecttype($hash->{objectid}),
20 objectid => $hash->{objectid},
21 command => $hash->{command},
22 txtype => $hash->{txtype} || $self->delegate->TXT_EXPLICIT,
23 status => $hash->{status} || $self->delegate->TXS_RUNNING,
24 necessity => $hash->{necessity} || $self->delegate->TXN_MANDATORY,
25 exists $hash->{objectcreated}
26 ? (objectcreated => $hash->{objectcreated})
27 0 ▶ : (),
Branch: 1 branch
BranchTrueFalseTotal
exists $hash->{'objectcreated'} ? : 0 0 0
Condition0%0/12
$hash->{'object_type'} || get_objecttype($hash->{'objectid'})
l!l&&r!l&&!r
000
$hash->{'txtype'} || $self->delegate->TXT_EXPLICIT
l!l&&r!l&&!r
000
$hash->{'status'} || $self->delegate->TXS_RUNNING
l!l&&r!l&&!r
000
$hash->{'necessity'} || $self->delegate->TXN_MANDATORY
l!l&&r!l&&!r
000
MC/DC0%0/2
$hash->{'object_type'} || get_objecttype($hash->{'objectid'})
$hash->{'object_type'} get_objecttype($hash->{'objectid'})
MC/DC0%0/2
$hash->{'txtype'} || $self->delegate->TXT_EXPLICIT
$hash->{'txtype'} $self->delegate->TXT_EXPLICIT
MC/DC0%0/2
$hash->{'status'} || $self->delegate->TXS_RUNNING
$hash->{'status'} $self->delegate->TXS_RUNNING
MC/DC0%0/2
$hash->{'necessity'} || $self->delegate->TXN_MANDATORY
$hash->{'necessity'} $self->delegate->TXN_MANDATORY
Truth table0%0/3
A || B
A= $hash->{'object_type'}B= get_objecttype($hash->{'objectid'})
ABresult
1X1
011
000
Truth table0%0/3
A || B
A= $hash->{'txtype'}B= $self->delegate->TXT_EXPLICIT
ABresult
1X1
011
000
Truth table0%0/3
A || B
A= $hash->{'status'}B= $self->delegate->TXS_RUNNING
ABresult
1X1
011
000
Truth table0%0/3
A || B
A= $hash->{'necessity'}B= $self->delegate->TXN_MANDATORY
ABresult
1X1
011
000
28 };
29 }
30  
31 0 ▶sub get_objecttype {
Subroutine get_objecttype: not called CC=1 SCAR=6.9
Pod documented
32 0 my $objectid = shift;
33 0 (my $object_type) = $objectid =~ /^(\w+)\.\d/;
34 }
35 1 1;
36  
37  
38 __END__
« Conveyor/Service/Interface/SOAP.pm ↑ Summary Conveyor/App/Dispatch.pm »