- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestWriteAfterWriterClose (1.14 sec)
-
internal/ringbuffer/ring_buffer_test.go
}) testCancel(func() { rb.Read([]byte{10: 1}) }) testCancel(func() { rb.ReadByte() }) testCancel(func() { rb.Write(make([]byte, sz)) rb.Flush() }) } func TestWriteAfterWriterClose(t *testing.T) { rb := New(100).SetBlocking(true) done := make(chan error) go func() { defer close(done) _, err := rb.Write([]byte("hello")) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 26.8K bytes - Viewed (0)