(b *testing.B)
| 382 | } |
| 383 | |
| 384 | func BenchmarkUAPIGet(b *testing.B) { |
| 385 | pair := genTestPair(b, true) |
| 386 | pair.Send(b, Ping, nil) |
| 387 | pair.Send(b, Pong, nil) |
| 388 | b.ReportAllocs() |
| 389 | b.ResetTimer() |
| 390 | for i := 0; i < b.N; i++ { |
| 391 | pair[0].dev.IpcGetOperation(io.Discard) |
| 392 | } |
| 393 | } |
| 394 | |
| 395 | func goroutineLeakCheck(t *testing.T) { |
| 396 | goroutines := func() (int, []byte) { |
nothing calls this directly
no test coverage detected