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

Function parallelTest1

source/gotest/subparallel_test.go:9–13  ·  view source on GitHub ↗

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

(t *testing.T)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected