(t *testing.T)
| 71 | } |
| 72 | |
| 73 | func TestByteBufferGetPutConcurrent(t *testing.T) { |
| 74 | concurrency := 10 |
| 75 | ch := make(chan struct{}, concurrency) |
| 76 | for i := 0; i < concurrency; i++ { |
| 77 | go func() { |
| 78 | testByteBufferGetPut(t) |
| 79 | ch <- struct{}{} |
| 80 | }() |
| 81 | } |
| 82 | |
| 83 | for i := 0; i < concurrency; i++ { |
| 84 | select { |
| 85 | case <-ch: |
| 86 | case <-time.After(time.Second): |
| 87 | t.Fatalf("timeout!") |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | func testByteBufferGetPut(t *testing.T) { |
| 93 | for i := 0; i < 10; i++ { |
nothing calls this directly
no test coverage detected
searching dependent graphs…