Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/google/gvisor
/ testLockerValid
Function
testLockerValid
tools/checklocks/test/locker.go:25–29 ·
view source on GitHub ↗
(tc *lockerStruct)
Source
from the content-addressed store, hash-verified
23
}
24
25
func
testLockerValid(tc *lockerStruct) {
26
tc.mu.Lock()
27
tc.guardedField = 1
28
tc.mu.Unlock()
29
}
30
31
func
testLockerInvalid(tc *lockerStruct) {
32
tc.guardedField = 1
// +checklocksfail
Callers
nothing calls this directly
Calls
2
Lock
Method · 0.65
Unlock
Method · 0.65
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…