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

Function TestParameters

internal/test/server/server_test.go:90–102  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

88}
89
90func TestParameters(t *testing.T) {
91 m := fakeServer{
92 t: t,
93 }
94
95 h := Handler(&m)
96
97 req := httptest.NewRequest("POST", "http://openapitest.deepmap.ai/resource2/1?inline_query_argument=99", nil)
98 rr := httptest.NewRecorder()
99 h.ServeHTTP(rr, req)
100
101 assert.True(t, m.called)
102}
103
104func TestErrorHandlerFunc(t *testing.T) {
105 m := fakeServer{}

Callers

nothing calls this directly

Calls 1

HandlerFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…