- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestRingBuffer_Write (0.08 sec)
-
internal/ringbuffer/ring_buffer_test.go
func TestRingBuffer_interface(t *testing.T) { rb := New(1) var _ io.Writer = rb var _ io.Reader = rb // var _ io.StringWriter = rb var _ io.ByteReader = rb var _ io.ByteWriter = rb } func TestRingBuffer_Write(t *testing.T) { rb := New(64) // check empty or full if !rb.IsEmpty() { t.Fatalf("expect IsEmpty is true but got false") } if rb.IsFull() { t.Fatalf("expect IsFull is false but got true") }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 26.8K bytes - Viewed (0)