()
| 83 | return fmt.Errorf("testingContext: unsupported Call") |
| 84 | } |
| 85 | func (t *testingContext) Request() interface{} { return t.req } |
| 86 | |
| 87 | func ContextForTesting(req *http.Request) context.Context { |
| 88 | return withContext(context.Background(), &testingContext{req: req}) |