File Coverage

blib/lib/IPC/Lock/RabbitMQ/Types.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package IPC::Lock::RabbitMQ::Types;
2 1         13 use MooseX::Types -declare => [qw/
3             Channel
4             MQ
5 1     1   6 /];
  1         1  
6 1     1   7904 use Moose::Util::TypeConstraints;
  1         3  
  1         9  
7 1     1   1829 use namespace::clean -except => [qw/ import meta /];
  1         1  
  1         14  
8              
9             class_type MQ, { class => 'AnyEvent::RabbitMQ' };
10              
11             class_type 'Net::RabbitFoot';
12              
13             coerce MQ, from 'Net::RabbitFoot', via { $_->{_ar} };
14              
15             1;
16              
17             =head1 NAME
18              
19             IPC::Lock::RabbitMQ::Types - Type constraints for IPC::Lock::RabbitMQ.
20              
21             =head1 DESCRIPTION
22              
23             See L<IPC::Lock::RabbitMQ>
24              
25             =head1 AUTHOR, COPYRIGHT & LICENSE
26              
27             See L<IPC::Lock::RabbitMQ>.
28              
29             =cut