Business/CyberSource/RequestPart/Service.pm

filter: Statementstmt 100% 21 / 21 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 96.5% 28 / 29 CC 2 SCAR 2.7
CC
2
Cov
96%
__ANON__
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Business/CyberSource/Response/Role/Base.pm ↑ Summary Business/CyberSource/RequestPart/OtherTax.pm »
1 package Business::CyberSource::RequestPart::Service;
2 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 13 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 13 our $VERSION = '0.010008'; # VERSION
7  
8 13 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 13 extends 'Business::CyberSource::MessagePart';
10 13 with 'MooseX::RemoteHelper::CompositeSerialization';
11  
12 has run => (
13 isa => 'Bool',
14 remote_name => 'run',
15 is => 'ro',
16 lazy => 1,
17 init_arg => undef,
18 reader => undef,
19 writer => undef,
20 9 ▶ default => sub { 1 },
Subroutine __ANON__: called CC=1 SCAR=0.0
21 9 ▶ serializer => sub {
Subroutine __ANON__: called CC=2 SCAR=7.2
22 9 my ( $attr, $instance ) = @_;
23 9 ▶ return $attr->get_value( $instance ) ? 'true' : 'false';
Branch: 1 branch
BranchTrueFalseTotal
$attr->get_value($instance) ? : 9 0 9
24 },
25 13 );
26  
27 13 __PACKAGE__->meta->make_immutable;
28 13 1;
29  
30 # ABSTRACT: Service Request Part
31  
32 __END__
« Business/CyberSource/Response/Role/Base.pm ↑ Summary Business/CyberSource/RequestPart/OtherTax.pm »