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

Function validCortex

test/utils.ts:331–335  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

329 const [value, errors] = parseEpsil(s);
330 if (errors && errors.length > 0) return formatError(errors);
331 return strip(value);
332}
333
334export function invalidEpsil(s: string): Expression | null {
335 const [value, errors] = parseEpsil(s);
336 if (errors && errors.length > 0) return formatError(errors);
337 return ['UnexpectedSuccess', strip(value as Expression) ?? 'Missing'];
338}

Callers 1

Calls 3

parseCortexFunction · 0.90
formatErrorFunction · 0.85
stripFunction · 0.85

Tested by

no test coverage detected