V1/Attestation/Types.pm untested

filter: Statementstmt 0.0% 0 / 68 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 73 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Grafeas::V1::Attestation::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 'AttestationNote',
11 as InstanceOf['Grafeas::V1::Attestation::AttestationNote'];
12  
13 coerce 'AttestationNote',
14 from HashRef, via { 'Grafeas::V1::Attestation::AttestationNote'->new($_) };
15  
16 declare 'RepeatedAttestationNote',
17 as ArrayRef[AttestationNote()];
18  
19 coerce 'RepeatedAttestationNote',
20 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Attestation::AttestationNote'->new($_) } @$_ ] };
21  
22 declare 'MapStringAttestationNote',
23 as HashRef[AttestationNote()];
24  
25 declare 'Hint',
26 as InstanceOf['Grafeas::V1::Attestation::AttestationNote::Hint'];
27  
28 coerce 'Hint',
29 from HashRef, via { 'Grafeas::V1::Attestation::AttestationNote::Hint'->new($_) };
30  
31 declare 'RepeatedHint',
32 as ArrayRef[Hint()];
33  
34 coerce 'RepeatedHint',
35 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Attestation::AttestationNote::Hint'->new($_) } @$_ ] };
36  
37 declare 'MapStringHint',
38 as HashRef[Hint()];
39  
40 declare 'Jwt',
41 as InstanceOf['Grafeas::V1::Attestation::Jwt'];
42  
43 coerce 'Jwt',
44 from HashRef, via { 'Grafeas::V1::Attestation::Jwt'->new($_) };
45  
46 declare 'RepeatedJwt',
47 as ArrayRef[Jwt()];
48  
49 coerce 'RepeatedJwt',
50 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Attestation::Jwt'->new($_) } @$_ ] };
51  
52 declare 'MapStringJwt',
53 as HashRef[Jwt()];
54  
55 declare 'AttestationOccurrence',
56 as InstanceOf['Grafeas::V1::Attestation::AttestationOccurrence'];
57  
58 coerce 'AttestationOccurrence',
59 from HashRef, via { 'Grafeas::V1::Attestation::AttestationOccurrence'->new($_) };
60  
61 declare 'RepeatedAttestationOccurrence',
62 as ArrayRef[AttestationOccurrence()];
63  
64 coerce 'RepeatedAttestationOccurrence',
65 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Attestation::AttestationOccurrence'->new($_) } @$_ ] };
66  
67 declare 'MapStringAttestationOccurrence',
68 as HashRef[AttestationOccurrence()];
69  
70 1;
71  
72 __END__