Documentation
¶
Overview ¶
The mock package provides implementations of dutctl entities that can be used for unit-testing modules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
PrintCalled bool
PrintText string
ConsoleCalled bool
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
RequestFileCalled bool
RequestedFileName string
RequestedFileResponse io.Reader
SendFileCalled bool
SentFileName string
SentFileContent []byte
}
Session is a mock implementation of the module.Session interface for testing purposes.
Click to show internal directories.
Click to hide internal directories.