- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestRingBuffer_Blocking (0.17 sec)
-
internal/ringbuffer/ring_buffer_test.go
if rb.Free() != 64 { t.Fatalf("expect free 64 bytes but got %d. r.w=%d, r.r=%d", rb.Free(), rb.w, rb.r) } if rb.r != 16 { t.Fatalf("expect r.r=16 but got %d. r.w=%d", rb.r, rb.w) } } func TestRingBuffer_Blocking(t *testing.T) { // Typical runtime is ~5-10s. defer timeout(60 * time.Second)() const debug = false var readBytes int var wroteBytes int var readBuf bytes.Buffer var wroteBuf bytes.Buffer
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 26.8K bytes - Viewed (0)