Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomName ¶
RandomName returns a string composed of random lowercase English letters of specified length.
Types ¶
type TestStruct ¶
type TestStruct struct {
Reader *os.File
Writer *os.File
Err error
Ctx context.Context
MockClient *admin.Clientset
MockAdminClient *mocks.AdminServiceClient
FetcherExt *extMocks.AdminFetcherExtInterface
UpdaterExt *extMocks.AdminUpdaterExtInterface
DeleterExt *extMocks.AdminDeleterExtInterface
MockOutStream io.Writer
CmdCtx cmdCore.CommandContext
StdOut *os.File
Stderr *os.File
}
func Setup ¶
func Setup(t *testing.T) (s TestStruct)
func (*TestStruct) TearDownAndVerify ¶
func (s *TestStruct) TearDownAndVerify(t *testing.T, expectedLog string)
TearDownAndVerify TODO: Change this to verify log lines from context
func (*TestStruct) TearDownAndVerifyContains ¶
func (s *TestStruct) TearDownAndVerifyContains(t *testing.T, expectedLog string)
Click to show internal directories.
Click to hide internal directories.