MarkdownEditor calls MarkdownEditorFunc.
(prompt string, defaultValue string, blankAllowed bool)
| 329 | |
| 330 | // MarkdownEditor calls MarkdownEditorFunc. |
| 331 | func (mock *PrompterMock) MarkdownEditor(prompt string, defaultValue string, blankAllowed bool) (string, error) { |
| 332 | if mock.MarkdownEditorFunc == nil { |
| 333 | panic("PrompterMock.MarkdownEditorFunc: method is nil but Prompter.MarkdownEditor was just called") |
| 334 | } |
| 335 | callInfo := struct { |
| 336 | Prompt string |
| 337 | DefaultValue string |
| 338 | BlankAllowed bool |
| 339 | }{ |
| 340 | Prompt: prompt, |
| 341 | DefaultValue: defaultValue, |
| 342 | BlankAllowed: blankAllowed, |
| 343 | } |
| 344 | mock.lockMarkdownEditor.Lock() |
| 345 | mock.calls.MarkdownEditor = append(mock.calls.MarkdownEditor, callInfo) |
| 346 | mock.lockMarkdownEditor.Unlock() |
| 347 | return mock.MarkdownEditorFunc(prompt, defaultValue, blankAllowed) |
| 348 | } |
| 349 | |
| 350 | // MarkdownEditorCalls gets all the calls that were made to MarkdownEditor. |
| 351 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected