Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureStdout ¶
CaptureStdout redirects stdout while running fn and returns the output as a string. If there's an error during capture, it returns the error, otherwise it returns the error returned by fn.
Types ¶
type Fixture ¶
type Fixture struct { MockController *gomock.Controller Client *hcapi2_mock.MockClient ActionWaiter *state.MockActionWaiter TokenEnsurer *state.MockTokenEnsurer }
Fixture provides affordances for testing CLI commands.
func (*Fixture) ExpectEnsureToken ¶
func (f *Fixture) ExpectEnsureToken()
ExpectEnsureToken makes the mock TokenEnsurer expect a EnsureToken call.
Click to show internal directories.
Click to hide internal directories.