Registry/GCE.pm

filter: Statementstmt 100% 14 / 14 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 19 / 19 CC 2 SCAR 4.1
CC
2
Cov
100%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« Registry/Request.pm ↑ Summary Registry/Response.pm »
1 package Docker::Registry::GCE;
2 1 ▶ use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶ use Types::Standard qw/Str Maybe/;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 extends 'Docker::Registry::V2';
5  
6 1 has region => (is => 'ro', isa => Maybe[Str], default => undef);
7  
8 3 ▶ has '+url' => (lazy => 1, default => sub {
Subroutine __ANON__: called CC=2 SCAR=6.9
9 3 my $self = shift;
10 3 ▶ if (defined $self->region) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $self->region) { } 1 2 3
11 1 sprintf 'https://%s.gcr.io', $self->region;
12 } else {
13 2 'https://gcr.io';
14 }
15 1 });
16  
17 1 1;
« Registry/Request.pm ↑ Summary Registry/Response.pm »