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

Function asMap

engine/seminaivebottomup_test.go:85–91  ·  view source on GitHub ↗
(preds []ast.PredicateSym)

Source from the content-addressed store, hash-verified

83}
84
85func asMap(preds []ast.PredicateSym) map[ast.PredicateSym]ast.Decl {
86 m := make(map[ast.PredicateSym]ast.Decl, len(preds))
87 for _, sym := range preds {
88 m[sym] = ast.NewSyntheticDeclFromSym(sym)
89 }
90 return m
91}
92
93func analyzeAndEvalProgram(t *testing.T, clauses []ast.Clause, store factstore.SimpleInMemoryStore, options ...EvalOption) error {
94 t.Helper()

Callers 4

TestRewriteIdempotencyFunction · 0.85
TestEvalExternalFunction · 0.85
BenchmarkJoinFunction · 0.85

Calls 1

NewSyntheticDeclFromSymFunction · 0.92

Tested by

no test coverage detected