MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / ExpectQuestion

Method ExpectQuestion

test/testutil/fakesurvey.go:301–305  ·  view source on GitHub ↗

ExpectQuestion calls ReceiveQuestion and asserts that the received survey prompt matches `question`

(t *testing.T, question survey.Prompt)

Source from the content-addressed store, hash-verified

299
300// ExpectQuestion calls ReceiveQuestion and asserts that the received survey prompt matches `question`
301func (m *AskMocker) ExpectQuestion(t *testing.T, question survey.Prompt) *QuestionWrapper {
302 q := m.ReceiveQuestion()
303 assert.Equal(t, question, q.Question)
304 return q
305}
306
307type QuestionWrapper struct {
308 // in case you need it

Calls 1

ReceiveQuestionMethod · 0.95