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 6     6   64901 use warnings;
  6         12  
  6         197  
3 6     6   34 use strict;
  6         12  
  6         139  
4              
5             # ABSTRACT: Moose like types defined for Docker::Registry
6              
7 6     6   584 use Types::Standard qw(Str);
  6         75729  
  6         65  
8 6     6   6062 use URI;
  6         22988  
  6         267  
9             use Type::Library
10 6         59 -base,
11 6     6   43 -declare => qw( DockerRegistryURI );
  6         13  
12 6     6   5630 use Type::Utils -all;
  6         29523  
  6         69  
13 6     6   20269 use Types::Standard qw/Str/;
  6         13  
  6         25  
14              
15             class_type DockerRegistryURI, { class => 'URI' };
16              
17             coerce DockerRegistryURI, from Str, via { return URI->new($_); };
18              
19             1;
20              
21             __END__