MCPcopy
hub / github.com/danielgtaylor/huma / Wrap

Function Wrap

humatest/humatest.go:311–313  ·  view source on GitHub ↗

Wrap returns a `TestAPI` wrapping the given API.

(tb TB, api huma.API)

Source from the content-addressed store, hash-verified

309
310// Wrap returns a `TestAPI` wrapping the given API.
311func Wrap(tb TB, api huma.API) TestAPI {
312 return &testAPI{api, tb}
313}
314
315// New creates a new router and test API, making it easy to register operations
316// and perform requests against them. Optionally takes a configuration object

Callers 7

TestFeaturesFunction · 0.92
testAdapterFunction · 0.92
TestCustomMiddlewareFunction · 0.92
TestChiRouterPrefixFunction · 0.92
TestPathParamDecodingFunction · 0.92
TestNewAPIFunction · 0.85
NewFunction · 0.85

Calls

no outgoing calls

Tested by 6

TestFeaturesFunction · 0.74
testAdapterFunction · 0.74
TestCustomMiddlewareFunction · 0.74
TestChiRouterPrefixFunction · 0.74
TestPathParamDecodingFunction · 0.74
TestNewAPIFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…