Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestWriteAfterWriterClose (0.14 sec)

  1. 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)
Back to top