Documentation ¶
Index ¶
- func ErrorAssertionWithEqual(t *testing.T, wantErr, err error) bool
- func ExecuteCommand(cmdFunc TestCmdFunc, cmd string) (stdout string, err error)
- func ExecuteCommandC(root *cobra.Command, args ...string) (stdout string, output string, err error)
- func ExecuteCommandOfArgs(cmdFunc TestCmdFunc, args ...string) (stdout string, err error)
- func Run(exec func()) (stdout string)
- func RunForStdout(streams genericiooptions.IOStreams, exec func()) (stdout string)
- func TInfo(msg interface{})
- func TOut(msg interface{})
- type FakeRESTClientGetter
- type TestCmdFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteCommand ¶
func ExecuteCommand(cmdFunc TestCmdFunc, cmd string) (stdout string, err error)
A helper to ignore os.Exit(1) errors when running a cobra Command
func ExecuteCommandC ¶
A helper to ignore os.Exit(1) errors when running a cobra Command
func ExecuteCommandOfArgs ¶
func ExecuteCommandOfArgs(cmdFunc TestCmdFunc, args ...string) (stdout string, err error)
func RunForStdout ¶
func RunForStdout(streams genericiooptions.IOStreams, exec func()) (stdout string)
Types ¶
type FakeRESTClientGetter ¶
type FakeRESTClientGetter struct {
// contains filtered or unexported fields
}
func NewFakeRESTClientGetter ¶
func NewFakeRESTClientGetter() *FakeRESTClientGetter
func (FakeRESTClientGetter) ToRESTConfig ¶
func (f FakeRESTClientGetter) ToRESTConfig() (*types.Config, error)
func (FakeRESTClientGetter) ToRawGLConfigLoader ¶
func (f FakeRESTClientGetter) ToRawGLConfigLoader() cmdutil.ClientConfig
Click to show internal directories.
Click to hide internal directories.