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

Method Write

huma_test.go:3421–3423  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

3419}
3420
3421func (br *BrokenWriter) Write(p []byte) (n int, err error) {
3422 return 0, errors.New("failed writing")
3423}
3424
3425func TestClientDisconnect(t *testing.T) {
3426 _, api := humatest.New(t, huma.DefaultConfig("Test API", "1.0.0"))

Callers 13

NewAPIFunction · 0.45
registerDocsRouteMethod · 0.45
ExampleAdapter_handleFunction · 0.45
TestFeaturesFunction · 0.45
transformAndWriteFunction · 0.45
RegisterFunction · 0.45
dumpBodyFunction · 0.45
DumpRequestFunction · 0.45
DumpResponseFunction · 0.45
RunMethod · 0.45
StopMethod · 0.45
endDialogMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected