(count int, tiers []string)
| 285 | } |
| 286 | |
| 287 | func memoryEffectivenessCoverage(count int, tiers []string) float64 { |
| 288 | if count == 0 { |
| 289 | return 0 |
| 290 | } |
| 291 | coverageCases := map[string]struct{}{ |
| 292 | "preference-adherence": {}, |
| 293 | "memory-lift": {}, |
| 294 | "project-lift": {}, |
| 295 | "project-rule-usage": {}, |
| 296 | } |
| 297 | ids := ExecutionCaseIDsFor(BenchmarkPluginMemory, tiers, "effectiveness") |
| 298 | hits := 0 |
| 299 | for id := range ids { |
| 300 | if _, ok := coverageCases[id]; ok { |
| 301 | hits++ |
| 302 | } |
| 303 | } |
| 304 | return float64(hits) / float64(count) |
| 305 | } |
| 306 | |
| 307 | type securityEvalCase struct { |
| 308 | caseID string |
no test coverage detected