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

Function makeDecl

parse/parse_test.go:37–44  ·  view source on GitHub ↗
(t *testing.T, atom ast.Atom, descrAtoms []ast.Atom, bounds []ast.BoundDecl, constraints *ast.InclusionConstraint)

Source from the content-addressed store, hash-verified

35}
36
37func 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
46func TestParseDecl(t *testing.T) {
47 inclConstraint := ast.NewInclusionConstraint([]ast.Atom{

Callers 3

TestParseDeclFunction · 0.70
TestParsePackageFunction · 0.70
TestParseUnitDeclsFunction · 0.70

Calls 1

NewDeclFunction · 0.92

Tested by

no test coverage detected