Registry/Types.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 33 / 33 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Registry/IO.pm ↑ Summary
1 package Docker::Registry::Types;
2 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # ABSTRACT: Moose like types defined for Docker::Registry
6  
7 7 ▶use Types::Standard qw(Str);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 7 ▶use URI;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 use Type::Library
10 7 ▶ -base,
Subroutine BEGIN: called CC=1 SCAR=0.0
11 7 -declare => qw( DockerRegistryURI );
12 7 ▶use Type::Utils -all;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 7 ▶use Types::Standard qw/Str/;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 7 class_type DockerRegistryURI, { class => 'URI' };
16  
17 10 ▶coerce DockerRegistryURI, from Str, via { return URI->new($_); };
Subroutine __ANON__: called CC=1 SCAR=0.0
18  
19 7 1;
20  
21 __END__
« Registry/IO.pm ↑ Summary