MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / memoryEffectivenessCoverage

Function memoryEffectivenessCoverage

benchmark/plugins.go:287–305  ·  view source on GitHub ↗
(count int, tiers []string)

Source from the content-addressed store, hash-verified

285}
286
287func 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
307type securityEvalCase struct {
308 caseID string

Callers 1

RunSuiteMethod · 0.85

Calls 1

ExecutionCaseIDsForFunction · 0.85

Tested by

no test coverage detected