Documentation
¶
Index ¶
- func NewTestCmd() *cobra.Command
- func NewTestCmdContext(scClient *serverscom.Client) *base.CmdContext
- func PtrInt(i int) *int
- func PtrInt64(i int64) *int64
- func PtrString(s string) *string
- func ReadFixture(filePath string) []byte
- type TestCommandBuilder
- func (b *TestCommandBuilder) Build() *cobra.Command
- func (b *TestCommandBuilder) GetOutput() string
- func (b *TestCommandBuilder) WithArgs(args []string) *TestCommandBuilder
- func (b *TestCommandBuilder) WithCommand(cmd *cobra.Command) *TestCommandBuilder
- func (b *TestCommandBuilder) WithInput(in io.Reader) *TestCommandBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestCmd ¶
func NewTestCmdContext ¶
func NewTestCmdContext(scClient *serverscom.Client) *base.CmdContext
func ReadFixture ¶
Types ¶
type TestCommandBuilder ¶
type TestCommandBuilder struct {
// contains filtered or unexported fields
}
func NewTestCommandBuilder ¶
func NewTestCommandBuilder() *TestCommandBuilder
func (*TestCommandBuilder) Build ¶
func (b *TestCommandBuilder) Build() *cobra.Command
func (*TestCommandBuilder) GetOutput ¶
func (b *TestCommandBuilder) GetOutput() string
func (*TestCommandBuilder) WithArgs ¶
func (b *TestCommandBuilder) WithArgs(args []string) *TestCommandBuilder
func (*TestCommandBuilder) WithCommand ¶
func (b *TestCommandBuilder) WithCommand(cmd *cobra.Command) *TestCommandBuilder
func (*TestCommandBuilder) WithInput ¶
func (b *TestCommandBuilder) WithInput(in io.Reader) *TestCommandBuilder
Click to show internal directories.
Click to hide internal directories.