iohandlermocks

package
v0.0.0-...-a9ed6da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package iohandlermocks implements the mock iohandler

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIOHandler

type MockIOHandler struct {
	mock.Mock
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL