(descrAtoms []ast.Atom, boundDecls []ast.BoundDecl, constraint *ast.InclusionConstraint)
| 34 | ) |
| 35 | |
| 36 | func mustDecl(descrAtoms []ast.Atom, boundDecls []ast.BoundDecl, constraint *ast.InclusionConstraint) ast.Decl { |
| 37 | decl, err := ast.NewDecl(declAtom, descrAtoms, boundDecls, constraint) |
| 38 | if err != nil { |
| 39 | panic(fmt.Errorf("bad test data: %v %v %v %v", declAtom, descrAtoms, boundDecls, constraint)) |
| 40 | } |
| 41 | return decl |
| 42 | } |
| 43 | |
| 44 | func checkBoundDecl(boundDecl ast.BoundDecl) []error { |
| 45 | return newDeclChecker(mustDecl([]ast.Atom{docAtomOne, argAtomBar, argAtomBaz}, []ast.BoundDecl{boundDecl}, nil)).check() |
no test coverage detected