并发子测试,无实际测试工作,仅用于演示
(t *testing.T)
| 7 | |
| 8 | // 并发子测试,无实际测试工作,仅用于演示 |
| 9 | func parallelTest1(t *testing.T) { |
| 10 | t.Parallel() |
| 11 | time.Sleep(3 * time.Second) |
| 12 | // do some testing |
| 13 | } |
| 14 | |
| 15 | // 并发子测试,无实际测试工作,仅用于演示 |
| 16 | func parallelTest2(t *testing.T) { |
nothing calls this directly
no outgoing calls
no test coverage detected