Client/Types.pm

filter: Statementstmt 100% 29 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 37 / 37 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Client/Exception/Upstream.pm ↑ Summary
1 package CloudFlare::Client::Types;
2 # ABSTRACT: Types for Cloudflare::Client
3  
4 9 ▶use strict; use warnings; no indirect 'fatal'; use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 9 ▶use Type::Library -base, -declare => qw( CFCode ErrorCode);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 # Theres a bug about using undef as a hashref before this version
8 9 ▶use Type::Utils 0.039_12 -all;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 9 ▶use Types::Standard qw( Enum Maybe);
Subroutine BEGIN: called CC=1 SCAR=0.0
10 9 ▶use Readonly;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 9 our $VERSION = 'v0.55.5'; # TRIAL VERSION
13  
14 9 class_type 'LWP::UserAgent';
15 9 declare CFCode, as Enum[qw( E_UNAUTH E_INVLDINPUT E_MAXAPI)];
16 9 declare ErrorCode, as Maybe[CFCode];
17  
18 9 1; # End of CloudFlare::Client::Types
19  
20 __END__
« Client/Exception/Upstream.pm ↑ Summary