(tc *oneGuardStruct)
| 19 | ) |
| 20 | |
| 21 | func testInconsistentReturn(tc *oneGuardStruct) { // +checklocksfail |
| 22 | if x := rand.Intn(10); x%2 == 1 { |
| 23 | tc.mu.Lock() |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func testConsistentBranching(tc *oneGuardStruct) { |
| 28 | x := rand.Intn(10) |
nothing calls this directly
no test coverage detected
searching dependent graphs…