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

Function entry

test/compute-engine/fungrim-compile.test.ts:48–69  ·  view source on GitHub ↗
(
  id: string,
  formula: unknown,
  variables: string[] = [],
  assumptions: unknown = null,
  cls: 'identity' | 'specific-value' = 'identity'
)

Source from the content-addressed store, hash-verified

46};
47
48function entry(
49 id: string,
50 formula: unknown,
51 variables: string[] = [],
52 assumptions: unknown = null,
53 cls: 'identity' | 'specific-value' = 'identity'
54): Entry {
55 return {
56 id,
57 formula,
58 variables,
59 assumptions,
60 class: cls,
61 subclass: null,
62 heads: [],
63 guardLevel: assumptions === null ? 'none' : 'real-simple',
64 flavor: null,
65 references: null,
66 topics: ['fixture'],
67 topic: 'fixture',
68 } as Entry;
69}
70
71function guards(assumptions: unknown, variables: string[]): GuardSpec[] {
72 const r = compileGuards(assumptions, variables);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected