(t *testing.T, opts ...func(*InterceptorExpr))
| 145 | } |
| 146 | |
| 147 | func 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 |
| 157 | func withReadPayload(t *testing.T, attrs *NamedAttributeExpr) func(*InterceptorExpr) { |
no outgoing calls
no test coverage detected