Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. internal/ringbuffer/ring_buffer_test.go

    		t.Fatalf("expect 16 abcd and 4 1234 but got %s. r.w=%d, r.r=%d", rb.Bytes(nil), rb.w, rb.r)
    	}
    }
    
    func TestRingBuffer_Read(t *testing.T) {
    	defer timeout(5 * time.Second)()
    	rb := New(64)
    
    	// check empty or full
    	if !rb.IsEmpty() {
    		t.Fatalf("expect IsEmpty is true but got false")
    	}
    	if rb.IsFull() {
    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