Riak/Types.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Riak/Transport/REST.pm ↑ Summary
1 package Net::Riak::Types;
2 {
3 22 $Net::Riak::Types::VERSION = '0.1702';
4 }
5  
6 22 ▶use MooseX::Types::Moose qw/Str ArrayRef HashRef/;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 22 ▶use MooseX::Types::Structured qw(Tuple Optional Dict);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 22 ▶use MooseX::Types -declare =>
Subroutine BEGIN: called CC=1 SCAR=0.0
9 22 [qw(Socket Client HTTPResponse HTTPRequest RiakHost)];
10  
11 22 class_type Socket, { class => 'IO::Socket::INET' };
12 22 class_type Client, { class => 'Net::Riak::Client' };
13 22 class_type HTTPRequest, { class => 'HTTP::Request' };
14 22 class_type HTTPResponse, { class => 'HTTP::Response' };
15  
16 22 subtype RiakHost, as ArrayRef [HashRef];
17  
18 5 ▶coerce RiakHost, from Str, via {
Subroutine __ANON__: called CC=1 SCAR=0.0
19 5 [ { node => $_, weight => 1 } ];
20 22 };
21  
22 22 1;
23  
24 __END__
« Riak/Transport/REST.pm ↑ Summary