Disable suppresses all events in the invocation, including already recorded events. It must be called before Finish.
()
| 268 | // Disable suppresses all events in the invocation, including already recorded |
| 269 | // events. It must be called before Finish. |
| 270 | func (s *service) Disable() { |
| 271 | s.mu.Lock() |
| 272 | defer s.mu.Unlock() |
| 273 | |
| 274 | s.disabled = true |
| 275 | } |
| 276 | |
| 277 | // Record copies a complete event into the service. |
| 278 | // Recording after Finish has no effect. |
nothing calls this directly
no outgoing calls
no test coverage detected