(t *testing.T)
| 380 | } |
| 381 | |
| 382 | func TestWithHttptestWithAutoSelectedPort(t *testing.T) { |
| 383 | router := New() |
| 384 | router.GET("/example", func(c *Context) { c.String(http.StatusOK, "it worked") }) |
| 385 | |
| 386 | ts := httptest.NewServer(router) |
| 387 | defer ts.Close() |
| 388 | |
| 389 | testRequest(t, ts.URL+"/example") |
| 390 | } |
| 391 | |
| 392 | func TestConcurrentHandleContext(t *testing.T) { |
| 393 | router := New() |
nothing calls this directly
no test coverage detected