« Devtools/Resultstore/V2/CoverageSummary.pm
↑ Summary
Devtools/Resultstore/V2/DownloadMetadata.pm »
| 1 | package Google::Devtools::Resultstore::V2::CoverageSummary::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 'LineCoverageSummary', | ||
| 11 | as InstanceOf['Google::Devtools::Resultstore::V2::CoverageSummary::LineCoverageSummary']; | ||
| 12 | |||
| 13 | coerce 'LineCoverageSummary', | ||
| 14 | from HashRef, via { 'Google::Devtools::Resultstore::V2::CoverageSummary::LineCoverageSummary'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedLineCoverageSummary', | ||
| 17 | as ArrayRef[LineCoverageSummary()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedLineCoverageSummary', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::CoverageSummary::LineCoverageSummary'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringLineCoverageSummary', | ||
| 23 | as HashRef[LineCoverageSummary()]; | ||
| 24 | |||
| 25 | declare 'BranchCoverageSummary', | ||
| 26 | as InstanceOf['Google::Devtools::Resultstore::V2::CoverageSummary::BranchCoverageSummary']; | ||
| 27 | |||
| 28 | coerce 'BranchCoverageSummary', | ||
| 29 | from HashRef, via { 'Google::Devtools::Resultstore::V2::CoverageSummary::BranchCoverageSummary'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedBranchCoverageSummary', | ||
| 32 | as ArrayRef[BranchCoverageSummary()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedBranchCoverageSummary', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::CoverageSummary::BranchCoverageSummary'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringBranchCoverageSummary', | ||
| 38 | as HashRef[BranchCoverageSummary()]; | ||
| 39 | |||
| 40 | declare 'LanguageCoverageSummary', | ||
| 41 | as InstanceOf['Google::Devtools::Resultstore::V2::CoverageSummary::LanguageCoverageSummary']; | ||
| 42 | |||
| 43 | coerce 'LanguageCoverageSummary', | ||
| 44 | from HashRef, via { 'Google::Devtools::Resultstore::V2::CoverageSummary::LanguageCoverageSummary'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedLanguageCoverageSummary', | ||
| 47 | as ArrayRef[LanguageCoverageSummary()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedLanguageCoverageSummary', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::CoverageSummary::LanguageCoverageSummary'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringLanguageCoverageSummary', | ||
| 53 | as HashRef[LanguageCoverageSummary()]; | ||
| 54 | |||
| 55 | 1; | ||
| 56 | |||
| 57 | __END__ |