(str string)
| 48 | } |
| 49 | |
| 50 | func atom(str string) ast.Atom { |
| 51 | term, err := parse.Term(str) |
| 52 | if err != nil { |
| 53 | panic(fmt.Errorf("bad syntax in test case: %s got %w", str, err)) |
| 54 | } |
| 55 | atom, ok := term.(ast.Atom) |
| 56 | if !ok { |
| 57 | panic(fmt.Errorf("not an atom test case: %v", term)) |
| 58 | } |
| 59 | return atom |
| 60 | } |
| 61 | |
| 62 | func makeDecl(t *testing.T, a ast.Atom, descr []ast.Atom, boundDecls []ast.BoundDecl, incl *ast.InclusionConstraint) ast.Decl { |
| 63 | t.Helper() |
no test coverage detected