Skip to content
Myr

Merge pull request #581 from tebeka/develop

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Rename to conform with test files naming (closes #580)

authored by Javier Provecho Fernandez · committed by Javier Provecho Fernandez · parents 233291e, 2fd607b · Browse files · 2 files+14 added−14 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+14 added−14 removed

  • other:+14 added−14 removed

2 files+14 added−14 removed

added:helpers_test.go+14 added
1package gin23import (4 "net/http/httptest"5)67func CreateTestContext() (c *Context, w *httptest.ResponseRecorder, r *Engine) {8 w = httptest.NewRecorder()9 r = New()10 c = r.allocateContext()11 c.reset()12 c.writermem.reset(w)13 return14}
deleted:test_helpers.go-14 removed
1package gin23import (4 "net/http/httptest"5)67func CreateTestContext() (c *Context, w *httptest.ResponseRecorder, r *Engine) {8 w = httptest.NewRecorder()9 r = New()10 c = r.allocateContext()11 c.reset()12 c.writermem.reset(w)13 return14}