MCPcopy Create free account
hub / github.com/goadesign/goa / makeMethod

Function makeMethod

expr/interceptor_test.go:185–192  ·  view source on GitHub ↗
(t *testing.T, opts ...func(*MethodExpr))

Source from the content-addressed store, hash-verified

183}
184
185func makeMethod(t *testing.T, opts ...func(*MethodExpr)) *MethodExpr {
186 t.Helper()
187 m := &MethodExpr{}
188 for _, opt := range opts {
189 opt(m)
190 }
191 return m
192}
193
194func withPayload(t *testing.T, attrs *NamedAttributeExpr) func(*MethodExpr) {
195 t.Helper()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected