MCPcopy Index your code
hub / github.com/garrytan/gstack / recordRouting

Function recordRouting

test/skill-routing-e2e.test.ts:153–166  ·  view source on GitHub ↗
(name: string, result: SkillTestResult, expectedSkill: string, actualSkill: string | undefined)

Source from the content-addressed store, hash-verified

151}
152
153function recordRouting(name: string, result: SkillTestResult, expectedSkill: string, actualSkill: string | undefined) {
154 evalCollector?.addTest({
155 name,
156 suite: 'Skill Routing E2E',
157 tier: 'e2e',
158 passed: actualSkill === expectedSkill,
159 duration_ms: result.duration,
160 cost_usd: result.costEstimate.estimatedCost,
161 transcript: result.transcript,
162 output: result.output?.slice(0, 2000),
163 turns_used: result.costEstimate.turnsUsed,
164 exit_reason: result.exitReason,
165 });
166}
167
168// Skip individual tests based on selectedTests (diff + tier filtering)
169const testIfSelected = (name: string, fn: () => Promise<void>, timeout?: number) => {

Callers 1

Calls 1

addTestMethod · 0.80

Tested by

no test coverage detected