Common/Types.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Common/Exception.pm ↑ Summary
1 package Net::Async::Webservice::Common::Types;
2 3 $Net::Async::Webservice::Common::Types::VERSION = '1.0.2';
3 {
4 3 $Net::Async::Webservice::Common::Types::DIST = 'Net-Async-Webservice-Common';
5 }
6 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 use Type::Library
9 3 ▶ -base,
Subroutine BEGIN: called CC=1 SCAR=0.0
10 -declare => qw( AsyncUserAgent SyncUserAgent
11 HTTPRequest
12 3 );
13 3 ▶use Type::Utils -all;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 # ABSTRACT: common types for async webservice clients
17  
18  
19 3 duck_type AsyncUserAgent, [qw(GET POST do_request)];
20 3 duck_type SyncUserAgent, [qw(get post request)];
21  
22 1 ▶coerce AsyncUserAgent, from SyncUserAgent, via {
Subroutine __ANON__: called CC=1 SCAR=0.0
23 1 require Net::Async::Webservice::Common::SyncAgentWrapper;
24 1 Net::Async::Webservice::Common::SyncAgentWrapper->new({ua=>$_});
25 3 };
26  
27  
28 3 class_type HTTPRequest, { class => 'HTTP::Request' };
29  
30 3 1;
31  
32 __END__
« Common/Exception.pm ↑ Summary