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

Function makeInterceptor

expr/interceptor_test.go:147–154  ·  view source on GitHub ↗
(t *testing.T, opts ...func(*InterceptorExpr))

Source from the content-addressed store, hash-verified

145}
146
147func makeInterceptor(t *testing.T, opts ...func(*InterceptorExpr)) *InterceptorExpr {
148 t.Helper()
149 i := &InterceptorExpr{Name: "test-interceptor"}
150 for _, opt := range opts {
151 opt(i)
152 }
153 return i
154}
155
156// Helper functions need to be updated to handle empty attributes properly
157func withReadPayload(t *testing.T, attrs *NamedAttributeExpr) func(*InterceptorExpr) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected