V2beta2/Task/Types.pm untested

filter: Statementstmt 0.0% 0 / 56 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 61 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::Tasks::V2beta2::Task::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 'Task',
11 as InstanceOf['Google::Cloud::Tasks::V2beta2::Task::Task'];
12  
13 coerce 'Task',
14 from HashRef, via { 'Google::Cloud::Tasks::V2beta2::Task::Task'->new($_) };
15  
16 declare 'RepeatedTask',
17 as ArrayRef[Task()];
18  
19 coerce 'RepeatedTask',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tasks::V2beta2::Task::Task'->new($_) } @$_ ] };
21  
22 declare 'MapStringTask',
23 as HashRef[Task()];
24  
25 declare 'View',
26 as (Int | Str);
27  
28 declare 'TaskStatus',
29 as InstanceOf['Google::Cloud::Tasks::V2beta2::Task::TaskStatus'];
30  
31 coerce 'TaskStatus',
32 from HashRef, via { 'Google::Cloud::Tasks::V2beta2::Task::TaskStatus'->new($_) };
33  
34 declare 'RepeatedTaskStatus',
35 as ArrayRef[TaskStatus()];
36  
37 coerce 'RepeatedTaskStatus',
38 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tasks::V2beta2::Task::TaskStatus'->new($_) } @$_ ] };
39  
40 declare 'MapStringTaskStatus',
41 as HashRef[TaskStatus()];
42  
43 declare 'AttemptStatus',
44 as InstanceOf['Google::Cloud::Tasks::V2beta2::Task::AttemptStatus'];
45  
46 coerce 'AttemptStatus',
47 from HashRef, via { 'Google::Cloud::Tasks::V2beta2::Task::AttemptStatus'->new($_) };
48  
49 declare 'RepeatedAttemptStatus',
50 as ArrayRef[AttemptStatus()];
51  
52 coerce 'RepeatedAttemptStatus',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tasks::V2beta2::Task::AttemptStatus'->new($_) } @$_ ] };
54  
55 declare 'MapStringAttemptStatus',
56 as HashRef[AttemptStatus()];
57  
58 1;
59  
60 __END__