MCPcopy Create free account
hub / github.com/cli/cli / MarkdownEditor

Method MarkdownEditor

internal/prompter/prompter_mock.go:331–348  ·  view source on GitHub ↗

MarkdownEditor calls MarkdownEditorFunc.

(prompt string, defaultValue string, blankAllowed bool)

Source from the content-addressed store, hash-verified

329
330// MarkdownEditor calls MarkdownEditorFunc.
331func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected