MCPcopy Create free account
hub / github.com/SKeyerror/Psyduck / TestSingletonConfig

Function TestSingletonConfig

go-concurrency/mutex/mutex_test.go:59–74  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

57}
58
59func TestSingletonConfig(t *testing.T) {
60 var wg sync.WaitGroup
61 wg.Add(10)
62
63 for i := 0; i < 10; i++ {
64 go func() {
65 defer wg.Done()
66 config := GetConfig()
67 fmt.Printf("config address : %p \n", config)
68 }()
69 }
70
71 wg.Wait()
72
73 fmt.Printf("config address : %p", GetConfig())
74}

Callers

nothing calls this directly

Calls 1

GetConfigFunction · 0.85

Tested by

no test coverage detected