Documentation ¶
Overview ¶
Package iohandlermocks implements the mock iohandler
Index ¶
- type MockIOHandler
- func (m *MockIOHandler) AppendError(message string)
- func (m *MockIOHandler) AppendErrorf(format string, params ...interface{})
- func (m *MockIOHandler) AppendInfo(message string)
- func (m *MockIOHandler) AppendInfof(format string, params ...interface{})
- func (m *MockIOHandler) Close(log log.T)
- func (m *MockIOHandler) GetExitCode() int
- func (m *MockIOHandler) GetIOConfig() contracts.IOConfiguration
- func (m *MockIOHandler) GetStatus() contracts.ResultStatus
- func (m *MockIOHandler) GetStderr() string
- func (m *MockIOHandler) GetStderrWriter() multiwriter.DocumentIOMultiWriter
- func (m *MockIOHandler) GetStdout() string
- func (m *MockIOHandler) GetStdoutWriter() multiwriter.DocumentIOMultiWriter
- func (m *MockIOHandler) Init(log log.T, filePath ...string)
- func (m *MockIOHandler) MarkAsCancelled()
- func (m *MockIOHandler) MarkAsFailed(err error)
- func (m *MockIOHandler) MarkAsInProgress()
- func (m *MockIOHandler) MarkAsShutdown()
- func (m *MockIOHandler) MarkAsSucceeded()
- func (m *MockIOHandler) MarkAsSuccessWithReboot()
- func (m *MockIOHandler) RegisterOutputSource(log log.T, multiWriter multiwriter.DocumentIOMultiWriter, ...)
- func (m *MockIOHandler) SetExitCode(code int)
- func (m *MockIOHandler) SetOutput(out interface{})
- func (m *MockIOHandler) SetStatus(status contracts.ResultStatus)
- func (m *MockIOHandler) SetStderr(stderr string)
- func (m *MockIOHandler) SetStdout(stdout string)
- func (m *MockIOHandler) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIOHandler ¶
MockIOHandler mocks the IOHandler.
func (*MockIOHandler) AppendError ¶
func (m *MockIOHandler) AppendError(message string)
AppendError is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) AppendErrorf ¶
func (m *MockIOHandler) AppendErrorf(format string, params ...interface{})
AppendErrorf is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) AppendInfo ¶
func (m *MockIOHandler) AppendInfo(message string)
AppendInfo is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) AppendInfof ¶
func (m *MockIOHandler) AppendInfof(format string, params ...interface{})
AppendInfof is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) Close ¶
func (m *MockIOHandler) Close(log log.T)
Close is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) GetExitCode ¶
func (m *MockIOHandler) GetExitCode() int
GetExitCode is a mocked method that just returns what mock tells it to.
func (*MockIOHandler) GetIOConfig ¶
func (m *MockIOHandler) GetIOConfig() contracts.IOConfiguration
GetIOConfig is a mocked method that just returns what mock tells it to.
func (*MockIOHandler) GetStatus ¶
func (m *MockIOHandler) GetStatus() contracts.ResultStatus
GetStatus is a mocked method that just returns what mock tells it to.
func (*MockIOHandler) GetStderr ¶
func (m *MockIOHandler) GetStderr() string
GetStderr is a mocked method that just returns what mock tells it to.
func (*MockIOHandler) GetStderrWriter ¶
func (m *MockIOHandler) GetStderrWriter() multiwriter.DocumentIOMultiWriter
GetStderrWriter is a mocked method that just returns what mock tells it to.
func (*MockIOHandler) GetStdout ¶
func (m *MockIOHandler) GetStdout() string
GetStdout is a mocked method that just returns what mock tells it to.
func (*MockIOHandler) GetStdoutWriter ¶
func (m *MockIOHandler) GetStdoutWriter() multiwriter.DocumentIOMultiWriter
GetStdoutWriter is a mocked method that just returns what mock tells it to.
func (*MockIOHandler) Init ¶
func (m *MockIOHandler) Init(log log.T, filePath ...string)
Init is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) MarkAsCancelled ¶
func (m *MockIOHandler) MarkAsCancelled()
MarkAsCancelled is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) MarkAsFailed ¶
func (m *MockIOHandler) MarkAsFailed(err error)
MarkAsFailed is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) MarkAsInProgress ¶
func (m *MockIOHandler) MarkAsInProgress()
MarkAsInProgress is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) MarkAsShutdown ¶
func (m *MockIOHandler) MarkAsShutdown()
MarkAsShutdown is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) MarkAsSucceeded ¶
func (m *MockIOHandler) MarkAsSucceeded()
MarkAsSucceeded is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) MarkAsSuccessWithReboot ¶
func (m *MockIOHandler) MarkAsSuccessWithReboot()
MarkAsSuccessWithReboot is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) RegisterOutputSource ¶
func (m *MockIOHandler) RegisterOutputSource(log log.T, multiWriter multiwriter.DocumentIOMultiWriter, IOModules ...iomodule.IOModule)
RegisterOutputSource is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) SetExitCode ¶
func (m *MockIOHandler) SetExitCode(code int)
SetExitCode is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) SetOutput ¶
func (m *MockIOHandler) SetOutput(out interface{})
SetOutput is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) SetStatus ¶
func (m *MockIOHandler) SetStatus(status contracts.ResultStatus)
SetStatus is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) SetStderr ¶
func (m *MockIOHandler) SetStderr(stderr string)
SetStderr is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) SetStdout ¶
func (m *MockIOHandler) SetStdout(stdout string)
SetStdout is a mocked method that acknowledges that the function has been called.
func (*MockIOHandler) String ¶
func (m *MockIOHandler) String() string
String is a mocked method that just returns what mock tells it to.