并发子测试,无实际测试工作,仅用于演示
(t *testing.T)
| 14 | |
| 15 | // 并发子测试,无实际测试工作,仅用于演示 |
| 16 | func parallelTest2(t *testing.T) { |
| 17 | t.Parallel() |
| 18 | time.Sleep(2 * time.Second) |
| 19 | // do some testing |
| 20 | } |
| 21 | |
| 22 | // 并发子测试,无实际测试工作,仅用于演示 |
| 23 | func parallelTest3(t *testing.T) { |
nothing calls this directly
no outgoing calls
no test coverage detected