MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / guards

Function guards

test/compute-engine/fungrim-compile.test.ts:71–75  ·  view source on GitHub ↗
(assumptions: unknown, variables: string[])

Source from the content-addressed store, hash-verified

69}
70
71function guards(assumptions: unknown, variables: string[]): GuardSpec[] {
72 const r = compileGuards(assumptions, variables);
73 if ('error' in r) throw new Error(`unexpected guard error: ${r.error}`);
74 return r.guards;
75}
76
77function guardError(assumptions: unknown, variables: string[]): string {
78 const r = compileGuards(assumptions, variables);

Callers 1

Calls 1

compileGuardsFunction · 0.90

Tested by

no test coverage detected