Documentation ¶
Overview ¶
Package shelltest provides utilities for mocking the login shell.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrCommandOverflow ¶ added in v0.0.10
ErrCommandOverflow happens when the command that is trying to be run would result in a buffer overflow in the Shell mock.
func (ErrCommandOverflow) Error ¶ added in v0.0.10
func (e ErrCommandOverflow) Error() string
type Shell ¶
type Shell struct { T *testing.T Context *context.Context SupportedPrograms map[string]bool Commands []Command // contains filtered or unexported fields }
Shell is a type that conforms to shell.Shell.
func (*Shell) CurrentDirectory ¶
CurrentDirectory returns the current directory.
Click to show internal directories.
Click to hide internal directories.