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   72641 use warnings;
  7         18  
  7         232  
3 7     7   36 use strict;
  7         14  
  7         180  
4              
5             # ABSTRACT: Moose like types defined for Docker::Registry
6              
7 7     7   667 use Types::Standard qw(Str);
  7         82892  
  7         46  
8 7     7   8145 use URI;
  7         28738  
  7         347  
9             use Type::Library
10 7         63 -base,
11 7     7   48 -declare => qw( DockerRegistryURI );
  7         18  
12 7     7   6976 use Type::Utils -all;
  7         35251  
  7         75  
13 7     7   23664 use Types::Standard qw/Str/;
  7         15  
  7         31  
14              
15             class_type DockerRegistryURI, { class => 'URI' };
16              
17             coerce DockerRegistryURI, from Str, via { return URI->new($_); };
18              
19             1;
20              
21             __END__