Actions/Sdk/V2/Conversation/Table/Types.pm untested

filter: Statementstmt 0.0% 0 / 69 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 74 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::Conversation::Table::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 'Table',
11 as InstanceOf['Google::Actions::Sdk::V2::Conversation::Table::Table'];
12  
13 coerce 'Table',
14 from HashRef, via { 'Google::Actions::Sdk::V2::Conversation::Table::Table'->new($_) };
15  
16 declare 'RepeatedTable',
17 as ArrayRef[Table()];
18  
19 coerce 'RepeatedTable',
20 from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Conversation::Table::Table'->new($_) } @$_ ] };
21  
22 declare 'MapStringTable',
23 as HashRef[Table()];
24  
25 declare 'TableColumn',
26 as InstanceOf['Google::Actions::Sdk::V2::Conversation::Table::TableColumn'];
27  
28 coerce 'TableColumn',
29 from HashRef, via { 'Google::Actions::Sdk::V2::Conversation::Table::TableColumn'->new($_) };
30  
31 declare 'RepeatedTableColumn',
32 as ArrayRef[TableColumn()];
33  
34 coerce 'RepeatedTableColumn',
35 from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Conversation::Table::TableColumn'->new($_) } @$_ ] };
36  
37 declare 'MapStringTableColumn',
38 as HashRef[TableColumn()];
39  
40 declare 'HorizontalAlignment',
41 as (Int | Str);
42  
43 declare 'TableCell',
44 as InstanceOf['Google::Actions::Sdk::V2::Conversation::Table::TableCell'];
45  
46 coerce 'TableCell',
47 from HashRef, via { 'Google::Actions::Sdk::V2::Conversation::Table::TableCell'->new($_) };
48  
49 declare 'RepeatedTableCell',
50 as ArrayRef[TableCell()];
51  
52 coerce 'RepeatedTableCell',
53 from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Conversation::Table::TableCell'->new($_) } @$_ ] };
54  
55 declare 'MapStringTableCell',
56 as HashRef[TableCell()];
57  
58 declare 'TableRow',
59 as InstanceOf['Google::Actions::Sdk::V2::Conversation::Table::TableRow'];
60  
61 coerce 'TableRow',
62 from HashRef, via { 'Google::Actions::Sdk::V2::Conversation::Table::TableRow'->new($_) };
63  
64 declare 'RepeatedTableRow',
65 as ArrayRef[TableRow()];
66  
67 coerce 'RepeatedTableRow',
68 from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Conversation::Table::TableRow'->new($_) } @$_ ] };
69  
70 declare 'MapStringTableRow',
71 as HashRef[TableRow()];
72  
73 1;
74  
75 __END__