WithPrompter is a test option to set the prompter for the test client.
(p iprompter)
| 33 | |
| 34 | // WithPrompter is a test option to set the prompter for the test client. |
| 35 | func WithPrompter(p iprompter) TestClientOpt { |
| 36 | return func(c *Client) { |
| 37 | c.prompter = p |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | func NewTestClient(opts ...TestClientOpt) *Client { |
| 42 | apiClient := &hostScopedClient{ |
no outgoing calls