Actions/Sdk/V2/Webhook/Types.pm untested

filter: Statementstmt 0.0% 0 / 81 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 86 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Actions::Sdk::V2::Webhook::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 'Webhook',
11 as InstanceOf['Google::Actions::Sdk::V2::Webhook::Webhook'];
12  
13 coerce 'Webhook',
14 from HashRef, via { 'Google::Actions::Sdk::V2::Webhook::Webhook'->new($_) };
15  
16 declare 'RepeatedWebhook',
17 as ArrayRef[Webhook()];
18  
19 coerce 'RepeatedWebhook',
20 from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Webhook::Webhook'->new($_) } @$_ ] };
21  
22 declare 'MapStringWebhook',
23 as HashRef[Webhook()];
24  
25 declare 'Handler',
26 as InstanceOf['Google::Actions::Sdk::V2::Webhook::Webhook::Handler'];
27  
28 coerce 'Handler',
29 from HashRef, via { 'Google::Actions::Sdk::V2::Webhook::Webhook::Handler'->new($_) };
30  
31 declare 'RepeatedHandler',
32 as ArrayRef[Handler()];
33  
34 coerce 'RepeatedHandler',
35 from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Webhook::Webhook::Handler'->new($_) } @$_ ] };
36  
37 declare 'MapStringHandler',
38 as HashRef[Handler()];
39  
40 declare 'HttpsEndpoint',
41 as InstanceOf['Google::Actions::Sdk::V2::Webhook::Webhook::HttpsEndpoint'];
42  
43 coerce 'HttpsEndpoint',
44 from HashRef, via { 'Google::Actions::Sdk::V2::Webhook::Webhook::HttpsEndpoint'->new($_) };
45  
46 declare 'RepeatedHttpsEndpoint',
47 as ArrayRef[HttpsEndpoint()];
48  
49 coerce 'RepeatedHttpsEndpoint',
50 from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Webhook::Webhook::HttpsEndpoint'->new($_) } @$_ ] };
51  
52 declare 'MapStringHttpsEndpoint',
53 as HashRef[HttpsEndpoint()];
54  
55 declare 'HttpHeadersEntry',
56 as InstanceOf['Google::Actions::Sdk::V2::Webhook::Webhook::HttpsEndpoint::HttpHeadersEntry'];
57  
58 coerce 'HttpHeadersEntry',
59 from HashRef, via { 'Google::Actions::Sdk::V2::Webhook::Webhook::HttpsEndpoint::HttpHeadersEntry'->new($_) };
60  
61 declare 'RepeatedHttpHeadersEntry',
62 as ArrayRef[HttpHeadersEntry()];
63  
64 coerce 'RepeatedHttpHeadersEntry',
65 from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Webhook::Webhook::HttpsEndpoint::HttpHeadersEntry'->new($_) } @$_ ] };
66  
67 declare 'MapStringHttpHeadersEntry',
68 as HashRef[HttpHeadersEntry()];
69  
70 declare 'InlineCloudFunction',
71 as InstanceOf['Google::Actions::Sdk::V2::Webhook::Webhook::InlineCloudFunction'];
72  
73 coerce 'InlineCloudFunction',
74 from HashRef, via { 'Google::Actions::Sdk::V2::Webhook::Webhook::InlineCloudFunction'->new($_) };
75  
76 declare 'RepeatedInlineCloudFunction',
77 as ArrayRef[InlineCloudFunction()];
78  
79 coerce 'RepeatedInlineCloudFunction',
80 from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Webhook::Webhook::InlineCloudFunction'->new($_) } @$_ ] };
81  
82 declare 'MapStringInlineCloudFunction',
83 as HashRef[InlineCloudFunction()];
84  
85 1;
86  
87 __END__