(t *testing.T, atom ast.Atom, descrAtoms []ast.Atom, bounds []ast.BoundDecl, constraints *ast.InclusionConstraint)
| 35 | } |
| 36 | |
| 37 | func makeDecl(t *testing.T, atom ast.Atom, descrAtoms []ast.Atom, bounds []ast.BoundDecl, constraints *ast.InclusionConstraint) ast.Decl { |
| 38 | t.Helper() |
| 39 | decl, err := ast.NewDecl(atom, descrAtoms, bounds, constraints) |
| 40 | if err != nil { |
| 41 | t.Fatal(err) |
| 42 | } |
| 43 | return decl |
| 44 | } |
| 45 | |
| 46 | func TestParseDecl(t *testing.T) { |
| 47 | inclConstraint := ast.NewInclusionConstraint([]ast.Atom{ |
no test coverage detected