V1/Content/Types.pm untested

filter: Statementstmt 0.0% 0 / 82 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 87 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Ai::Generativelanguage::V1::Content::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 'Modality',
11 as (Int | Str);
12  
13 declare 'Content',
14 as InstanceOf['Google::Ai::Generativelanguage::V1::Content::Content'];
15  
16 coerce 'Content',
17 from HashRef, via { 'Google::Ai::Generativelanguage::V1::Content::Content'->new($_) };
18  
19 declare 'RepeatedContent',
20 as ArrayRef[Content()];
21  
22 coerce 'RepeatedContent',
23 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::Content::Content'->new($_) } @$_ ] };
24  
25 declare 'MapStringContent',
26 as HashRef[Content()];
27  
28 declare 'Part',
29 as InstanceOf['Google::Ai::Generativelanguage::V1::Content::Part'];
30  
31 coerce 'Part',
32 from HashRef, via { 'Google::Ai::Generativelanguage::V1::Content::Part'->new($_) };
33  
34 declare 'RepeatedPart',
35 as ArrayRef[Part()];
36  
37 coerce 'RepeatedPart',
38 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::Content::Part'->new($_) } @$_ ] };
39  
40 declare 'MapStringPart',
41 as HashRef[Part()];
42  
43 declare 'Blob',
44 as InstanceOf['Google::Ai::Generativelanguage::V1::Content::Blob'];
45  
46 coerce 'Blob',
47 from HashRef, via { 'Google::Ai::Generativelanguage::V1::Content::Blob'->new($_) };
48  
49 declare 'RepeatedBlob',
50 as ArrayRef[Blob()];
51  
52 coerce 'RepeatedBlob',
53 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::Content::Blob'->new($_) } @$_ ] };
54  
55 declare 'MapStringBlob',
56 as HashRef[Blob()];
57  
58 declare 'VideoMetadata',
59 as InstanceOf['Google::Ai::Generativelanguage::V1::Content::VideoMetadata'];
60  
61 coerce 'VideoMetadata',
62 from HashRef, via { 'Google::Ai::Generativelanguage::V1::Content::VideoMetadata'->new($_) };
63  
64 declare 'RepeatedVideoMetadata',
65 as ArrayRef[VideoMetadata()];
66  
67 coerce 'RepeatedVideoMetadata',
68 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::Content::VideoMetadata'->new($_) } @$_ ] };
69  
70 declare 'MapStringVideoMetadata',
71 as HashRef[VideoMetadata()];
72  
73 declare 'ModalityTokenCount',
74 as InstanceOf['Google::Ai::Generativelanguage::V1::Content::ModalityTokenCount'];
75  
76 coerce 'ModalityTokenCount',
77 from HashRef, via { 'Google::Ai::Generativelanguage::V1::Content::ModalityTokenCount'->new($_) };
78  
79 declare 'RepeatedModalityTokenCount',
80 as ArrayRef[ModalityTokenCount()];
81  
82 coerce 'RepeatedModalityTokenCount',
83 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::Content::ModalityTokenCount'->new($_) } @$_ ] };
84  
85 declare 'MapStringModalityTokenCount',
86 as HashRef[ModalityTokenCount()];
87  
88 1;
89  
90 __END__