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

Function mustDesugar

analysis/validation_test.go:244–251  ·  view source on GitHub ↗
(t *testing.T, decls map[ast.PredicateSym]ast.Decl)

Source from the content-addressed store, hash-verified

242}
243
244func mustDesugar(t *testing.T, decls map[ast.PredicateSym]ast.Decl) map[ast.PredicateSym]*ast.Decl {
245 t.Helper()
246 desugaredDecls, err := symbols.CheckAndDesugar(decls)
247 if err != nil {
248 t.Fatal(err)
249 }
250 return desugaredDecls
251}
252
253func TestAnalyzePositive(t *testing.T) {
254 privateDecl := makeDecl(t, atom("foo.baz(X)"), []ast.Atom{atom("private()")}, nil, nil)

Callers 1

TestAnalyzePositiveFunction · 0.85

Calls 1

CheckAndDesugarFunction · 0.92

Tested by

no test coverage detected