Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/betty200744/ultimate-go
/ Test_Mutex_2
Function
Test_Mutex_2
build-in-package/sync/sync-mutex_test.go:40–49 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
38
}
39
40
func
Test_Mutex_2(t *testing.T) {
41
mutex := &sync.Mutex{}
42
wait := &sync.WaitGroup{}
43
for
i := 0; i < 100; i++ {
44
wait.Add(1)
45
go
increment(wait, mutex)
46
}
47
wait.Wait()
48
fmt.Println(x)
49
}
Callers
nothing calls this directly
Calls
2
increment
Function · 0.85
Add
Method · 0.65
Tested by
no test coverage detected