(t *testing.T)
| 119 | } |
| 120 | |
| 121 | func TestByteBufferGetStringConcurrent(t *testing.T) { |
| 122 | concurrency := 10 |
| 123 | ch := make(chan struct{}, concurrency) |
| 124 | for i := 0; i < concurrency; i++ { |
| 125 | go func() { |
| 126 | testByteBufferGetString(t) |
| 127 | ch <- struct{}{} |
| 128 | }() |
| 129 | } |
| 130 | |
| 131 | for i := 0; i < concurrency; i++ { |
| 132 | select { |
| 133 | case <-ch: |
| 134 | case <-time.After(time.Second): |
| 135 | t.Fatalf("timeout!") |
| 136 | } |
| 137 | } |
| 138 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…