Versions in this module Expand all Collapse all v4 v4.1.7 Jun 28, 2021 Changes in this version + var ClientConfig = api.ClientConfig + func CheckStringContains(t *testing.T, got, expected string) + func CheckStringOmits(t *testing.T, got, expected string) + func EmptyRun(*cobra.Command, []string) + func ExecuteCommand(root *cobra.Command, args ...string) (output string, err error) + func ResetCommandLineFlagSet() + func ResetConfigManager() + func RunCommandTests(t *testing.T, cmdTests map[string]CommandTest) + func SetupConfigManager() + func SetupContext(contextName string, clientConfig api.ClientConfig, ...) + func SetupMasterContext() + func TestingHTTPClient(handler http.Handler) (*http.Client, func()) + type CommandTest struct + Cmd func() *cobra.Command + CmdArgs []string + HasCustomError error + ProcessOutput func(t *testing.T, s string) + Setup func() + ShouldContain []string + ShouldContainErrors []string + ShouldNotContain []string + Teardown func() Other modules containing this package github.com/rollulus/lenses-go/v5