(ctrl *gomock.Controller, watch *testWatch)
| 158 | } |
| 159 | |
| 160 | func testFinish(ctrl *gomock.Controller, watch *testWatch) { |
| 161 | watch.Lock() |
| 162 | defer watch.Unlock() |
| 163 | // Ensure only single writers to gomock.Controller |
| 164 | ctrl.Finish() |
| 165 | } |
| 166 | |
| 167 | type testWatch struct { |
| 168 | sync.RWMutex |
no test coverage detected