MCPcopy Create free account
hub / github.com/aetherstate/GODMOD3.AI / testModule

Function testModule

research/eval_stm_precision.ts:30–47  ·  view source on GitHub ↗
(module: STMModule, tests: TransformTest[])

Source from the content-addressed store, hash-verified

28}
29
30function testModule(module: STMModule, tests: TransformTest[]): TransformResult[] {
31 // Enable the module for testing
32 const enabledModule = { ...module, enabled: true }
33
34 return tests.map(test => {
35 const output = enabledModule.transformer(test.input)
36 const wasTransformed = output !== test.input
37
38 return {
39 input: test.input,
40 output,
41 wasTransformed,
42 expectedTransformed: test.expectedTransformed,
43 correct: wasTransformed === test.expectedTransformed,
44 description: test.description,
45 }
46 })
47}
48
49// ── Hedge Reducer Tests ──────────────────────────────────────────────
50

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected