Documentation
¶
Index ¶
- type DumbCmd
- type OrderedCmd
- type Out
- type TrackingCmd
- func (c *TrackingCmd) Reset()
- func (c *TrackingCmd) Run(command []string, root string, in io.Reader, out io.Writer, err io.Writer) error
- func (c *TrackingCmd) RunWithContext(_ context.Context, command []string, root string, in io.Reader, out io.Writer, ...) error
- func (c *TrackingCmd) WithoutEnvs(envs ...string) system.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderedCmd ¶
type OrderedCmd struct {
// contains filtered or unexported fields
}
OrderedCmd contains predefined list of commands and makes sure actual calls are the same.
func NewOrdered ¶
func NewOrdered(t testing.TB, outs []Out) *OrderedCmd
NewOrdered returns executor that have the order defined in `outs`.
func (*OrderedCmd) Run ¶
func (c *OrderedCmd) Run(command []string, root string, in io.Reader, out io.Writer, err io.Writer) error
Run makes sure command is executed correctly.
func (*OrderedCmd) WithoutEnvs ¶
func (c *OrderedCmd) WithoutEnvs(envs ...string) system.Command
WithoutEnvs simply does nothing.
type TrackingCmd ¶
type TrackingCmd struct {
Commands []string
// contains filtered or unexported fields
}
func NewTracking ¶
NewTracking returns executor that collects the called commands.
func (*TrackingCmd) Reset ¶
func (c *TrackingCmd) Reset()
func (*TrackingCmd) Run ¶
func (c *TrackingCmd) Run(command []string, root string, in io.Reader, out io.Writer, err io.Writer) error
Run makes sure command is executed correctly.
func (*TrackingCmd) RunWithContext ¶
func (*TrackingCmd) WithoutEnvs ¶
func (c *TrackingCmd) WithoutEnvs(envs ...string) system.Command
WithoutEnvs simply does nothing.
Click to show internal directories.
Click to hide internal directories.