MCPcopy
hub / github.com/google/gvisor / testReturnValidAcquire

Function testReturnValidAcquire

tools/checklocks/test/return.go:33–37  ·  view source on GitHub ↗

+checklocksacquire:tc.mu

()

Source from the content-addressed store, hash-verified

31
32// +checklocksacquire:tc.mu
33func testReturnValidAcquire() (tc *oneGuardStruct) {
34 tc = new(oneGuardStruct)
35 tc.mu.Lock()
36 return tc
37}
38
39func testReturnAcquireCall() {
40 tc := testReturnValidAcquire()

Callers 1

testReturnAcquireCallFunction · 0.85

Calls 2

LockMethod · 0.65
newFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…