(t *testing.T, decls ...ast.Decl)
| 566 | } |
| 567 | |
| 568 | func makeDesugaredDecls(t *testing.T, decls ...ast.Decl) map[ast.PredicateSym]*ast.Decl { |
| 569 | t.Helper() |
| 570 | declMap := make(map[ast.PredicateSym]ast.Decl) |
| 571 | for _, decl := range decls { |
| 572 | declMap[decl.DeclaredAtom.Predicate] = decl |
| 573 | } |
| 574 | desugaredDecls, err := symbols.CheckAndDesugar(declMap) |
| 575 | if err != nil { |
| 576 | t.Fatal(err) |
| 577 | } |
| 578 | return desugaredDecls |
| 579 | } |
| 580 | |
| 581 | func newBoundsTestCase(t *testing.T, clauses []ast.Clause, decls []ast.Decl) boundsTestCase { |
| 582 | return newBoundsTestCaseWithNameTrie(t, clauses, decls, nil) |
no test coverage detected