Documentation
¶
Index ¶
- func NewCommandContext(t *testing.T, server *httptest.Server, outputFormat string) (core.CommandContext, *bytes.Buffer)
- func NewCommandContextWithConfig(t *testing.T, server *httptest.Server, outputFormat string, ...) (core.CommandContext, *bytes.Buffer)
- func NewCommandContextWithRedirectPolicy(t *testing.T, server *httptest.Server, outputFormat string) (core.CommandContext, *bytes.Buffer)
- type FakeConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommandContext ¶
Types ¶
type FakeConfig ¶
FakeConfig is a test stub implementation of the CLI's core.ConfigContext. The app-active accessors are no-ops because the app commands under test here do not use them.
func (*FakeConfig) GetActiveApp ¶
func (f *FakeConfig) GetActiveApp() string
func (*FakeConfig) GetURL ¶
func (f *FakeConfig) GetURL() string
func (*FakeConfig) SetActiveApp ¶
func (f *FakeConfig) SetActiveApp(appID string) error
Click to show internal directories.
Click to hide internal directories.