(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func TestGinServer(t *testing.T) { |
| 55 | server := ginAPI.StrictServer{} |
| 56 | strictHandler := ginAPI.NewStrictHandler(server, nil) |
| 57 | gin.SetMode(gin.ReleaseMode) |
| 58 | r := gin.New() |
| 59 | ginAPI.RegisterHandlers(r, strictHandler) |
| 60 | testImpl(t, r) |
| 61 | } |
| 62 | |
| 63 | func testImpl(t *testing.T, handler http.Handler) { |
| 64 | t.Run("JSONExample", func(t *testing.T) { |
nothing calls this directly
no test coverage detected