calculateAverageCoverage calculates average coverage with zero-division guard
(total, covered int)
| 329 | |
| 330 | // calculateAverageCoverage calculates average coverage with zero-division guard |
| 331 | func calculateAverageCoverage(total, covered int) int { |
| 332 | if total == 0 { |
| 333 | return 100 |
| 334 | } |
| 335 | return covered / total |
| 336 | } |
| 337 | |
| 338 | // extractCoveredRelationships extracts covered relationships for a given entity from the shape |
| 339 | func extractCoveredRelationships(entityName string, relationships []string) []string { |
no outgoing calls
no test coverage detected