Devicesandservices/Health/V4/DataSource/Types.pm untested

filter: Statementstmt 0.0% 0 / 58 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 63 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Devicesandservices::Health::V4::DataSource::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 'DataSource',
11 as InstanceOf['Google::Devicesandservices::Health::V4::DataSource::DataSource'];
12  
13 coerce 'DataSource',
14 from HashRef, via { 'Google::Devicesandservices::Health::V4::DataSource::DataSource'->new($_) };
15  
16 declare 'RepeatedDataSource',
17 as ArrayRef[DataSource()];
18  
19 coerce 'RepeatedDataSource',
20 from ArrayRef[HashRef], via { [ map { 'Google::Devicesandservices::Health::V4::DataSource::DataSource'->new($_) } @$_ ] };
21  
22 declare 'MapStringDataSource',
23 as HashRef[DataSource()];
24  
25 declare 'RecordingMethod',
26 as (Int | Str);
27  
28 declare 'Platform',
29 as (Int | Str);
30  
31 declare 'Device',
32 as InstanceOf['Google::Devicesandservices::Health::V4::DataSource::DataSource::Device'];
33  
34 coerce 'Device',
35 from HashRef, via { 'Google::Devicesandservices::Health::V4::DataSource::DataSource::Device'->new($_) };
36  
37 declare 'RepeatedDevice',
38 as ArrayRef[Device()];
39  
40 coerce 'RepeatedDevice',
41 from ArrayRef[HashRef], via { [ map { 'Google::Devicesandservices::Health::V4::DataSource::DataSource::Device'->new($_) } @$_ ] };
42  
43 declare 'MapStringDevice',
44 as HashRef[Device()];
45  
46 declare 'FormFactor',
47 as (Int | Str);
48  
49 declare 'Application',
50 as InstanceOf['Google::Devicesandservices::Health::V4::DataSource::DataSource::Application'];
51  
52 coerce 'Application',
53 from HashRef, via { 'Google::Devicesandservices::Health::V4::DataSource::DataSource::Application'->new($_) };
54  
55 declare 'RepeatedApplication',
56 as ArrayRef[Application()];
57  
58 coerce 'RepeatedApplication',
59 from ArrayRef[HashRef], via { [ map { 'Google::Devicesandservices::Health::V4::DataSource::DataSource::Application'->new($_) } @$_ ] };
60  
61 declare 'MapStringApplication',
62 as HashRef[Application()];
63  
64 1;
65  
66 __END__