Spanner/V1/Mutation/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::Spanner::V1::Mutation::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 'Mutation',
11 as InstanceOf['Google::Spanner::V1::Mutation::Mutation'];
12  
13 coerce 'Mutation',
14 from HashRef, via { 'Google::Spanner::V1::Mutation::Mutation'->new($_) };
15  
16 declare 'RepeatedMutation',
17 as ArrayRef[Mutation()];
18  
19 coerce 'RepeatedMutation',
20 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Mutation::Mutation'->new($_) } @$_ ] };
21  
22 declare 'MapStringMutation',
23 as HashRef[Mutation()];
24  
25 declare 'Write',
26 as InstanceOf['Google::Spanner::V1::Mutation::Mutation::Write'];
27  
28 coerce 'Write',
29 from HashRef, via { 'Google::Spanner::V1::Mutation::Mutation::Write'->new($_) };
30  
31 declare 'RepeatedWrite',
32 as ArrayRef[Write()];
33  
34 coerce 'RepeatedWrite',
35 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Mutation::Mutation::Write'->new($_) } @$_ ] };
36  
37 declare 'MapStringWrite',
38 as HashRef[Write()];
39  
40 declare 'Delete',
41 as InstanceOf['Google::Spanner::V1::Mutation::Mutation::Delete'];
42  
43 coerce 'Delete',
44 from HashRef, via { 'Google::Spanner::V1::Mutation::Mutation::Delete'->new($_) };
45  
46 declare 'RepeatedDelete',
47 as ArrayRef[Delete()];
48  
49 coerce 'RepeatedDelete',
50 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Mutation::Mutation::Delete'->new($_) } @$_ ] };
51  
52 declare 'MapStringDelete',
53 as HashRef[Delete()];
54  
55 declare 'Send',
56 as InstanceOf['Google::Spanner::V1::Mutation::Mutation::Send'];
57  
58 coerce 'Send',
59 from HashRef, via { 'Google::Spanner::V1::Mutation::Mutation::Send'->new($_) };
60  
61 declare 'RepeatedSend',
62 as ArrayRef[Send()];
63  
64 coerce 'RepeatedSend',
65 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Mutation::Mutation::Send'->new($_) } @$_ ] };
66  
67 declare 'MapStringSend',
68 as HashRef[Send()];
69  
70 declare 'Ack',
71 as InstanceOf['Google::Spanner::V1::Mutation::Mutation::Ack'];
72  
73 coerce 'Ack',
74 from HashRef, via { 'Google::Spanner::V1::Mutation::Mutation::Ack'->new($_) };
75  
76 declare 'RepeatedAck',
77 as ArrayRef[Ack()];
78  
79 coerce 'RepeatedAck',
80 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Mutation::Mutation::Ack'->new($_) } @$_ ] };
81  
82 declare 'MapStringAck',
83 as HashRef[Ack()];
84  
85 1;
86  
87 __END__