Documentation
¶
Index ¶
- Constants
- func EnvUseCommandTimes() int
- func EnvUseGoWantHelperProcess() bool
- func EnvWithCommandTimes(times int) string
- func EnvWithGoWantHelperProcess() string
- func NewTestingCommander(withOptions ...TestingCommanderOption) command.Commander
- func TestHelperProcess(t *testing.T, executors ...CommandExecutor)
- type CommandExecutor
- type EnvFactory
- type TestingCommanderOption
Constants ¶
View Source
const ( EnvGoWantHelperProcess = "__GO_WANT_HELPER_PROCESS__" EnvCommandTimes = "__GO_COMMAND_TIMES__" )
Variables ¶
This section is empty.
Functions ¶
func EnvUseCommandTimes ¶
func EnvUseCommandTimes() int
func EnvUseGoWantHelperProcess ¶
func EnvUseGoWantHelperProcess() bool
func EnvWithCommandTimes ¶
func EnvWithGoWantHelperProcess ¶
func EnvWithGoWantHelperProcess() string
func NewTestingCommander ¶
func NewTestingCommander(withOptions ...TestingCommanderOption) command.Commander
func TestHelperProcess ¶
func TestHelperProcess(t *testing.T, executors ...CommandExecutor)
Types ¶
type CommandExecutor ¶
func CallTimesTestHelperProcess ¶
func CallTimesTestHelperProcess(executors ...CommandExecutor) CommandExecutor
type TestingCommanderOption ¶
type TestingCommanderOption = func(options *testingCommanderOptions)
func WithCommanderEnvs ¶
func WithCommanderEnvs(envs EnvFactory) TestingCommanderOption
func WithCommanderHelperName ¶
func WithCommanderHelperName(helperName string) TestingCommanderOption
Click to show internal directories.
Click to hide internal directories.