MCPcopy Create free account
hub / github.com/RainbowMango/GoExpertProgramming / parallelTest2

Function parallelTest2

source/gotest/subparallel_test.go:16–20  ·  view source on GitHub ↗

并发子测试,无实际测试工作,仅用于演示

(t *testing.T)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected