MCPcopy Index your code
hub / github.com/oapi-codegen/oapi-codegen / TestGinServer

Function TestGinServer

internal/test/strict-server/strict_test.go:54–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

52}
53
54func 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
63func testImpl(t *testing.T, handler http.Handler) {
64 t.Run("JSONExample", func(t *testing.T) {

Callers

nothing calls this directly

Calls 1

testImplFunction · 0.70

Tested by

no test coverage detected