V1/Session/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::Cloud::Discoveryengine::V1::Session::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 'Session',
11 as InstanceOf['Google::Cloud::Discoveryengine::V1::Session::Session'];
12  
13 coerce 'Session',
14 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Session::Session'->new($_) };
15  
16 declare 'RepeatedSession',
17 as ArrayRef[Session()];
18  
19 coerce 'RepeatedSession',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Session::Session'->new($_) } @$_ ] };
21  
22 declare 'MapStringSession',
23 as HashRef[Session()];
24  
25 declare 'State',
26 as (Int | Str);
27  
28 declare 'Turn',
29 as InstanceOf['Google::Cloud::Discoveryengine::V1::Session::Session::Turn'];
30  
31 coerce 'Turn',
32 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Session::Session::Turn'->new($_) };
33  
34 declare 'RepeatedTurn',
35 as ArrayRef[Turn()];
36  
37 coerce 'RepeatedTurn',
38 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Session::Session::Turn'->new($_) } @$_ ] };
39  
40 declare 'MapStringTurn',
41 as HashRef[Turn()];
42  
43 declare 'QueryConfigEntry',
44 as InstanceOf['Google::Cloud::Discoveryengine::V1::Session::Session::Turn::QueryConfigEntry'];
45  
46 coerce 'QueryConfigEntry',
47 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Session::Session::Turn::QueryConfigEntry'->new($_) };
48  
49 declare 'RepeatedQueryConfigEntry',
50 as ArrayRef[QueryConfigEntry()];
51  
52 coerce 'RepeatedQueryConfigEntry',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Session::Session::Turn::QueryConfigEntry'->new($_) } @$_ ] };
54  
55 declare 'MapStringQueryConfigEntry',
56 as HashRef[QueryConfigEntry()];
57  
58 declare 'Query',
59 as InstanceOf['Google::Cloud::Discoveryengine::V1::Session::Query'];
60  
61 coerce 'Query',
62 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Session::Query'->new($_) };
63  
64 declare 'RepeatedQuery',
65 as ArrayRef[Query()];
66  
67 coerce 'RepeatedQuery',
68 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Session::Query'->new($_) } @$_ ] };
69  
70 declare 'MapStringQuery',
71 as HashRef[Query()];
72  
73 1;
74  
75 __END__