Bonusly/Companies.pm

filter: Statementstmt 100% 20 / 20 Branchbran 83.3% 5 / 6 Conditioncond 66.6% 2 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 84.2% 32 / 38 CC 5 SCAR 11.8
CC
5
Cov
93%
update
5.1
BEGIN
1.0
BEGIN
1.0
CRAP 3.3
« Bonusly/Authentication.pm ↑ Summary Bonusly/Rewards.pm »
1 ### AUTO-GENERATED FILE ###
2 ### DO NOT EDIT. YOUR CHANGES WILL BE LOST. ###
3 package WebService::Bonusly::Companies;
4 1 $WebService::Bonusly::Companies::VERSION = '1.001';
5 1 ▶use v5.14;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 extends 'WebService::Bonusly::Service';
10  
11 # ABSTRACT: Implements the bonus.ly companies service
12  
13  
14  
15 2 ▶sub show {
Subroutine show: called CC=1 SCAR=0.0
Pod undocumented
16 2 my ($self, %params) = @_;
17  
18 2 my %clean;
19
20
21 2 return $self->_perform_action(
22 'GET',
23 'companies/show',
24 \%clean,
25
26 );
27 }
28  
29 4 ▶sub update {
Subroutine update: called CC=5 SCAR=16.2
Pod undocumented
30 4 my ($self, %params) = @_;
31  
32 4 my %clean;
33
34 $clean{name} = delete $params{name}
35 4 ▶ if defined $params{name};
Branch: 1 branch
BranchTrueFalseTotal
if defined $params{"name"} 3 1 4
36
37 croak "parameter custom_properties must be a HASH for companies->update"
38 4 ▶ if defined $params{custom_properties} and ref($params{custom_properties}) ne 'HASH';
Branch: 1 branch
BranchTrueFalseTotal
if defined $params{"custom_properties"} and ref $params{"custom_properties"} ne "HASH" 0 4 4
Condition66%2/3
defined $params{"custom_properties"} and ref $params{"custom_properties"} ne "HASH"
!ll&&!rl&&r
220
MC/DC0%0/2
defined $params{"custom_properties"} and ref $params{"custom_properties"} ne "HASH"
defined $params{"custom_properties"} ref $params{"custom_properties"} ne "HASH"
Truth table66%2/3
A and B
A= defined $params{"custom_properties"}B= ref $params{"custom_properties"} ne "HASH"
ABresult
0X0
100
111
39
40 $clean{custom_properties} = delete $params{custom_properties}
41 4 ▶ if defined $params{custom_properties};
Branch: 1 branch
BranchTrueFalseTotal
if defined $params{"custom_properties"} 2 2 4
42
43
44 4 return $self->_perform_action(
45 'PUT',
46 'companies/update',
47 \%clean,
48
49 );
50 }
51  
52  
53 1 __PACKAGE__->meta->make_immutable;
54  
55 __END__
« Bonusly/Authentication.pm ↑ Summary Bonusly/Rewards.pm »