MCPcopy
hub / github.com/google/mangle / evalAtom

Function evalAtom

factstore/factstore_test.go:35–45  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

33}
34
35func evalAtom(s string) ast.Atom {
36 term, err := parse.Term(s)
37 if err != nil {
38 panic(err)
39 }
40 eval, err := functional.EvalAtom(term.(ast.Atom), nil)
41 if err != nil {
42 panic(err)
43 }
44 return eval
45}
46
47func TestAddContainsRemove(t *testing.T) {
48 for _, fs := range []FactStore{

Callers 3

testStoreFunction · 0.70
TestFilteredFunction · 0.70
TestAddContainsRemoveFunction · 0.70

Calls 2

TermFunction · 0.92
EvalAtomFunction · 0.92

Tested by

no test coverage detected