Documentation
¶
Index ¶
- func IsolateConfigHome(t testing.TB) string
- func IsolateConfigHomeAllowDefault(t testing.TB) string
- func RunExpectError(t testing.TB, run RunFn, args []string, wantErrSubstr string) string
- func RunExpectOK(t testing.TB, run RunFn, args []string) string
- func RunHelp(t testing.TB, run RunFn, baseArgs []string, wantContains ...string)
- func UseControlPlaneEnv(t testing.TB, baseURL string)
- func UseControlPlaneEnvWithToken(t testing.TB, baseURL, token string)
- type RunFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsolateConfigHome ¶
func RunExpectError ¶
RunExpectError invokes run with args and asserts that it returns a non-nil error whose message contains wantErrSubstr. Returns the writer contents so callers can make additional assertions on usage output.
func RunExpectOK ¶
RunExpectOK invokes run with args and asserts that it returns no error. Returns the writer contents so callers can assert on stdout/stderr output.
func RunHelp ¶
RunHelp asserts that both `--help` and `-h` invocations of baseArgs succeed and emit output containing each wantContains substring.
func UseControlPlaneEnv ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.