buildSchemaCoverageInfo builds the final SchemaCoverageInfo with total coverage
(entityCoverageInfos []EntityCoverageInfo)
| 277 | |
| 278 | // buildSchemaCoverageInfo builds the final SchemaCoverageInfo with total coverage |
| 279 | func buildSchemaCoverageInfo(entityCoverageInfos []EntityCoverageInfo) SchemaCoverageInfo { |
| 280 | relationshipsCoverage, attributesCoverage, assertionsCoverage := calculateTotalCoverage(entityCoverageInfos) |
| 281 | |
| 282 | return SchemaCoverageInfo{ |
| 283 | EntityCoverageInfo: entityCoverageInfos, |
| 284 | TotalRelationshipsCoverage: relationshipsCoverage, |
| 285 | TotalAttributesCoverage: attributesCoverage, |
| 286 | TotalAssertionsCoverage: assertionsCoverage, |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | // calculateCoveragePercent calculates coverage percentage based on total and uncovered elements |
| 291 | func calculateCoveragePercent(totalElements, uncoveredElements []string) int { |
no test coverage detected