(t *testing.T)
| 3052 | } |
| 3053 | |
| 3054 | func TestContextResetInHandler(t *testing.T) { |
| 3055 | w := CreateTestResponseRecorder() |
| 3056 | c, _ := CreateTestContext(w) |
| 3057 | |
| 3058 | c.handlers = []HandlerFunc{ |
| 3059 | func(c *Context) { c.reset() }, |
| 3060 | } |
| 3061 | assert.NotPanics(t, func() { |
| 3062 | c.Next() |
| 3063 | }) |
| 3064 | } |
| 3065 | |
| 3066 | func TestRaceParamsContextCopy(t *testing.T) { |
| 3067 | DefaultWriter = os.Stdout |
nothing calls this directly
no test coverage detected