blib/lib/Net/Fastly/Customer.pm

filter: Statementstmt 80.0% 8 / 10 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 66.6% 2 / 3 Podpod 100% 1 / 1 totaltotal 57.8% 11 / 19 CC 2 SCAR 12.5
CC
2
Cov
62%
owner
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.5
« blib/lib/Net/Fastly/VCL.pm ↑ Summary blib/lib/Net/Fastly/BelongsToServiceAndVersion.pm »
1 package Net::Fastly::Customer;
2  
3 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use base qw(Net::Fastly::Model);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 5 Net::Fastly::Customer->mk_accessors(qw(id name owner_id));
7  
8 =head1 NAME
9  
10 Net::Fastly::User - a representation of a user
11  
12 =head1 ACCESSORS
13  
14 =head2 id
15  
16 The id of this customer
17  
18 =head2 name
19  
20 The name of this customer
21  
22 =head2 owner_id
23  
24 The id of the user that owns this customer
25  
26 =cut
27  
28 =head1 METHODS
29  
30 =head2 owner
31  
32 The User object representing the owner of this customer.
33  
34 =cut
35 sub owner {
36 0 ▶ my $self = shift;
Subroutine owner: not called CC=2 SCAR=17.9
Pod documented
37 0 ▶ return $self->{_owner} ||= $self->_fetcher->_get("Net::Fastly::User", $self->owner_id);
Condition0%0/3
$self->{"_owner"} ||= $self->_fetcher->_get("Net::Fastly::User", $self->owner_id)
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->{"_owner"} ||= $self->_fetcher->_get("Net::Fastly::User", $self->owner_id)
$self->{"_owner"} $self->_fetcher->_get("Net::Fastly::User", $self->owner_id)
Truth table0%0/3
A ||= B
A= $self->{"_owner"}B= $self->_fetcher->_get("Net::Fastly::User", $self->owner_id)
ABresult
1X1
011
000
38 }
39 5 1;
« blib/lib/Net/Fastly/VCL.pm ↑ Summary blib/lib/Net/Fastly/BelongsToServiceAndVersion.pm »