MCPcopy
hub / github.com/golang/net / testConnCloseUnblocksStreamWrite

Function testConnCloseUnblocksStreamWrite

quic/conn_close_test.go:288–298  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

286 synctest.Test(t, testConnCloseUnblocksStreamWrite)
287}
288func testConnCloseUnblocksStreamWrite(t *testing.T) {
289 testConnCloseUnblocks(t, func(ctx context.Context, tc *testConn) error {
290 s := newLocalStream(t, tc, bidiStream)
291 s.SetWriteContext(ctx)
292 buf := make([]byte, 32)
293 _, err := s.Write(buf)
294 return err
295 }, permissiveTransportParameters, func(c *Config) {
296 c.MaxStreamWriteBufferSize = 16
297 })
298}
299
300func TestConnCloseUnblocksStreamClose(t *testing.T) {
301 synctest.Test(t, testConnCloseUnblocksStreamClose)

Callers

nothing calls this directly

Calls 4

testConnCloseUnblocksFunction · 0.85
newLocalStreamFunction · 0.85
SetWriteContextMethod · 0.80
WriteMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…