Registry/Response.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 80.0% 16 / 20 CC 1 SCAR 2.2
CC
1
Cov
87%
header
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Registry/GCE.pm ↑ Summary Registry/Auth/Gitlab.pm »
1 package Docker::Registry::Response;
2 6 ▶ use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 6 ▶ use Types::Standard qw/Str Int HashRef/;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶ use HTTP::Headers;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 6 has content => (is => 'ro', isa => Str);
7 6 has status => (is => 'ro', isa => Int, required => 1);
8 6 has headers => (is => 'rw', isa => HashRef, required => 1);
9  
10 0 ▶ sub header {
Subroutine header: not called CC=1 SCAR=6.9
Pod undocumented
11 0 my ($self, $header) = @_;
12 0 return $self->headers->{ $header };
13 }
14  
15 6 1;
« Registry/GCE.pm ↑ Summary Registry/Auth/Gitlab.pm »