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

Function invalidCortex

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

Source from the content-addressed store, hash-verified

335 const [value, errors] = parseEpsil(s);
336 if (errors && errors.length > 0) return formatError(errors);
337 return ['UnexpectedSuccess', strip(value as Expression) ?? 'Missing'];
338}
339
340function memToString(n: number): string {
341 if (n < 1024) return n.toFixed() + ' bytes';
342 n /= 1024;
343 if (n < 1024) return n.toFixed(1) + ' kB';
344 n /= 1024;

Callers 1

Calls 3

parseCortexFunction · 0.90
formatErrorFunction · 0.85
stripFunction · 0.85

Tested by

no test coverage detected