V2/Case/Types.pm untested

filter: Statementstmt 0.0% 0 / 44 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 49 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Cloud::Support::V2::Case::Types;
2  
3 use strict;
4 use warnings;
5  
6 use Type::Library -base;
7 use Type::Utils -all;
8 use Types::Standard -types;
9  
10 declare 'Case',
11 as InstanceOf['Google::Cloud::Support::V2::Case::Case'];
12  
13 coerce 'Case',
14 from HashRef, via { 'Google::Cloud::Support::V2::Case::Case'->new($_) };
15  
16 declare 'RepeatedCase',
17 as ArrayRef[Case()];
18  
19 coerce 'RepeatedCase',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Support::V2::Case::Case'->new($_) } @$_ ] };
21  
22 declare 'MapStringCase',
23 as HashRef[Case()];
24  
25 declare 'State',
26 as (Int | Str);
27  
28 declare 'Priority',
29 as (Int | Str);
30  
31 declare 'CaseClassification',
32 as InstanceOf['Google::Cloud::Support::V2::Case::CaseClassification'];
33  
34 coerce 'CaseClassification',
35 from HashRef, via { 'Google::Cloud::Support::V2::Case::CaseClassification'->new($_) };
36  
37 declare 'RepeatedCaseClassification',
38 as ArrayRef[CaseClassification()];
39  
40 coerce 'RepeatedCaseClassification',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Support::V2::Case::CaseClassification'->new($_) } @$_ ] };
42  
43 declare 'MapStringCaseClassification',
44 as HashRef[CaseClassification()];
45  
46 1;
47  
48 __END__