MCPcopy
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
25func testLockerValid(tc *lockerStruct) {
26 tc.mu.Lock()
27 tc.guardedField = 1
28 tc.mu.Unlock()
29}
30
31func testLockerInvalid(tc *lockerStruct) {
32 tc.guardedField = 1 // +checklocksfail

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…