File Coverage

blib/lib/Docker/Registry/Types.pm
Criterion Covered Total %
statement 21 21 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 28 28 100.0


line stmt bran cond sub pod time code
1             package Docker::Registry::Types;
2 7     7   69890 use warnings;
  7         14  
  7         242  
3 7     7   37 use strict;
  7         16  
  7         181  
4              
5             # ABSTRACT: Moose like types defined for Docker::Registry
6              
7 7     7   651 use Types::Standard qw(Str);
  7         78471  
  7         69  
8 7     7   7315 use URI;
  7         29521  
  7         325  
9             use Type::Library
10 7         52 -base,
11 7     7   53 -declare => qw( DockerRegistryURI );
  7         18  
12 7     7   7040 use Type::Utils -all;
  7         35867  
  7         78  
13 7     7   23940 use Types::Standard qw/Str/;
  7         15  
  7         35  
14              
15             class_type DockerRegistryURI, { class => 'URI' };
16              
17             coerce DockerRegistryURI, from Str, via { return URI->new($_); };
18              
19             1;
20              
21             __END__