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.
func (*FakeConfig) GetActiveApp ¶
func (f *FakeConfig) GetActiveApp() string
func (*FakeConfig) GetActiveWorkspace ¶
func (f *FakeConfig) GetActiveWorkspace() string
func (*FakeConfig) GetURL ¶
func (f *FakeConfig) GetURL() string
func (*FakeConfig) SetActiveApp ¶
func (f *FakeConfig) SetActiveApp(appID string) error
func (*FakeConfig) SetActiveWorkspace ¶
func (f *FakeConfig) SetActiveWorkspace(workspaceID string) error
Click to show internal directories.
Click to hide internal directories.