MarkMockComplete clears the incomplete-mock flag. Parsers call it when they have finished a mock cycle (typically right after EmitMock or when sending directive.FinalizeMock). Idempotent.
()
| 208 | // when they have finished a mock cycle (typically right after EmitMock |
| 209 | // or when sending directive.FinalizeMock). Idempotent. |
| 210 | func (s *Session) MarkMockComplete() { |
| 211 | if s == nil { |
| 212 | return |
| 213 | } |
| 214 | s.mockIncomplete.Store(false) |
| 215 | } |
| 216 | |
| 217 | // IsMockIncomplete reports whether the session's active mock has been |
| 218 | // marked incomplete. Parsers may use this to short-circuit expensive |