()
| 9 | ) |
| 10 | |
| 11 | func Mock_Ctx() *Ctx { |
| 12 | ctx := Ctx{ |
| 13 | params: map[string]string{"id": "42"}, |
| 14 | } |
| 15 | ctx.Request = httptest.NewRequest(http.MethodGet, "/?query=queryValue", nil) |
| 16 | ctx.Response = &responseWriterWrapper{ |
| 17 | httptest.NewRecorder(), |
| 18 | 0, |
| 19 | nil, |
| 20 | } |
| 21 | return &ctx |
| 22 | } |
| 23 | func TestNewServer_DefaultConfig(t *testing.T) { |
| 24 | server := New() |
| 25 |
no outgoing calls
no test coverage detected