UPS/Response/QV/Reference.pm

filter: Statementstmt 90.0% 27 / 30 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 85.3% 35 / 41 CC 3 SCAR 6.9
CC
3
Cov
85%
BUILDARGS
3.7
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« UPS/Types.pm ↑ Summary UPS/Response/QV/File.pm »
1 package Net::Async::Webservice::UPS::Response::QV::Reference;
2 1 $Net::Async::Webservice::UPS::Response::QV::Reference::VERSION = '1.1.4';
3 {
4 1 $Net::Async::Webservice::UPS::Response::QV::Reference::DIST = 'Net-Async-Webservice-UPS';
5 }
6 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Types::Standard qw(Str ArrayRef HashRef);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Net::Async::Webservice::UPS::Types qw(:types);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Net::Async::Webservice::UPS::Response::Utils qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 # ABSTRACT: a Quantum View package or shipment reference
13  
14  
15 1 has number => (
16 is => 'ro',
17 isa => Str,
18 );
19  
20  
21 1 has code => (
22 is => 'ro',
23 isa => Str,
24 );
25  
26  
27 1 has value => (
28 is => 'ro',
29 isa => Str,
30 );
31  
32 2 ▶sub BUILDARGS {
Subroutine BUILDARGS: called CC=3 SCAR=13.0
Pod undocumented
33 2 my ($class,$hashref) = @_;
34 0 ▶ if (@_>2) { shift; $hashref={@_} };
Branch: 1 branch
BranchTrueFalseTotal
if (@_ > 2) 0 2 2
35  
36 2 ▶ if ($hashref->{Number}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($hashref->{"Number"}) 2 0 2
37 2 set_implied_argument($hashref);
38 return {
39 2 in_if(number=>'Number'),
40 in_if(code=>'Code'),
41 in_if(value=>'Value'),
42 };
43 }
44 0 return $hashref;
45 }
46  
47 1 1;
48  
49 __END__
« UPS/Types.pm ↑ Summary UPS/Response/QV/File.pm »