Documentation ¶
Overview ¶
Package mockhelper is a generated GoMock package.
Index ¶
- Variables
- type MockHelper
- func (mh *MockHelper) FileCloseCall(m *wrp.MockLimitedFile) *gomock.Call
- func (mh *MockHelper) FileCloseErr(m *wrp.MockLimitedFile) *gomock.Call
- func (mh *MockHelper) FileCloseOK(m *wrp.MockLimitedFile) *gomock.Call
- func (mh *MockHelper) FilePathEvalSymlinksCall(m *wrp.MockLimitedFilepath) *gomock.Call
- func (mh *MockHelper) FilePathEvalSymlinksErr(m *wrp.MockLimitedFilepath) *gomock.Call
- func (mh *MockHelper) FilePathEvalSymlinksOK(m *wrp.MockLimitedFilepath) *gomock.Call
- func (mh *MockHelper) FilePathGlobCall(m *wrp.MockLimitedFilepath) *gomock.Call
- func (mh *MockHelper) FilePathGlobErr(m *wrp.MockLimitedFilepath) *gomock.Call
- func (mh *MockHelper) FilePathGlobOK(m *wrp.MockLimitedFilepath) *gomock.Call
- func (mh *MockHelper) FileWriteStringCall(m *wrp.MockLimitedFile) *gomock.Call
- func (mh *MockHelper) FileWriteStringErr(m *wrp.MockLimitedFile) *gomock.Call
- func (mh *MockHelper) FileWriteStringOK(m *wrp.MockLimitedFile) *gomock.Call
- func (mh *MockHelper) ISCSILibCreateOrUpdateNodeCall(m *wrp.MockISCSILib) *gomock.Call
- func (mh *MockHelper) ISCSILibCreateOrUpdateNodeErr(m *wrp.MockISCSILib) *gomock.Call
- func (mh *MockHelper) ISCSILibCreateOrUpdateNodeOK(m *wrp.MockISCSILib) *gomock.Call
- func (mh *MockHelper) ISCSILibGetInitiatorsCall(m *wrp.MockISCSILib) *gomock.Call
- func (mh *MockHelper) ISCSILibGetInitiatorsErr(m *wrp.MockISCSILib) *gomock.Call
- func (mh *MockHelper) ISCSILibGetInitiatorsOK(m *wrp.MockISCSILib) *gomock.Call
- func (mh *MockHelper) ISCSILibGetSessionsCall(m *wrp.MockISCSILib) *gomock.Call
- func (mh *MockHelper) ISCSILibGetSessionsErr(m *wrp.MockISCSILib) *gomock.Call
- func (mh *MockHelper) ISCSILibGetSessionsOK(m *wrp.MockISCSILib) *gomock.Call
- func (mh *MockHelper) ISCSILibPerformLoginCall(m *wrp.MockISCSILib) *gomock.Call
- func (mh *MockHelper) ISCSILibPerformLoginErr(m *wrp.MockISCSILib) *gomock.Call
- func (mh *MockHelper) ISCSILibPerformLoginOK(m *wrp.MockISCSILib) *gomock.Call
- func (mh *MockHelper) OSExecCmdCall(m *wrp.MockLimitedOSExecCmd) *gomock.Call
- func (mh *MockHelper) OSExecCmdErr(m *wrp.MockLimitedOSExecCmd) *gomock.Call
- func (mh *MockHelper) OSExecCmdOK(m *wrp.MockLimitedOSExecCmd) *gomock.Call
- func (mh *MockHelper) OSExecCommandContextCall(m *wrp.MockLimitedOSExec) *gomock.Call
- func (mh *MockHelper) OSExecCommandContextOK(m *wrp.MockLimitedOSExec) (*gomock.Call, *wrp.MockLimitedOSExecCmd)
- func (mh *MockHelper) OSIsNotExistCall(m *wrp.MockLimitedOS) *gomock.Call
- func (mh *MockHelper) OSIsNotExistOK(m *wrp.MockLimitedOS) *gomock.Call
- func (mh *MockHelper) OSOpenFileCall(m *wrp.MockLimitedOS) *gomock.Call
- func (mh *MockHelper) OSOpenFileCallErr(m *wrp.MockLimitedOS) *gomock.Call
- func (mh *MockHelper) OSOpenFileCallOK(m *wrp.MockLimitedOS) (*gomock.Call, *wrp.MockLimitedFile)
- func (mh *MockHelper) OSReadFileCall(m *wrp.MockLimitedOS) *gomock.Call
- func (mh *MockHelper) OSReadFileErr(m *wrp.MockLimitedOS) *gomock.Call
- func (mh *MockHelper) OSReadFileOK(m *wrp.MockLimitedOS) *gomock.Call
- func (mh *MockHelper) OSStatCall(m *wrp.MockLimitedOS) *gomock.Call
- func (mh *MockHelper) OSStatCallErr(m *wrp.MockLimitedOS) *gomock.Call
- func (mh *MockHelper) OSStatCallOK(m *wrp.MockLimitedOS) (*gomock.Call, *wrp.MockLimitedFileInfo)
- func (mh *MockHelper) OSStatFileInfoIsDirCall(m *wrp.MockLimitedFileInfo) *gomock.Call
- func (mh *MockHelper) OSStatFileInfoIsDirOK(m *wrp.MockLimitedFileInfo) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
var ( // TestErrMsg defines test error message TestErrMsg = "test error" // ErrTest defines test error ErrTest = errors.New(TestErrMsg) // ValidWWID defines wwid ValidWWID = "368ccf09800533dde4fa5e9ac6e9034ef" // ValidSYSFCWWID defines FC wwid ValidSYSFCWWID = "naa.68ccf09800533dde4fa5e9ac6e9034ef" // ValidDMName defines device mapper name ValidDMName = "dm-1" // ValidDMPath defines device mapper path ValidDMPath = "/dev/dm-1" // ValidDevicePath defines device path ValidDevicePath = "/dev/sde" // ValidDeviceName defines device name ValidDeviceName = "sde" // ValidDevicePath2 defines device path2 ValidDevicePath2 = "/dev/sdf" // ValidDeviceName2 defines device name2 ValidDeviceName2 = "sdf" // ValidDevices defines list of devices ValidDevices = []string{ValidDeviceName, ValidDeviceName2} )
Functions ¶
This section is empty.
Types ¶
type MockHelper ¶
type MockHelper struct { Ctrl *gomock.Controller OSOpenFileCallPath string OSStatCallPath string OSStatFileInfoIsDirOKReturn bool OSEXECCommandContextName string OSEXECCommandContextArgs []string OSEXECCmdOKReturn string OSIsNotExistOKReturn bool OSReadFileCallPath string OSReadFileOKReturn string FileWriteStringCallData string FilePathGlobCallPattern string FilePathGlobOKReturn []string FilePathEvalSymlinksCallPath string FilePathEvalSymlinksOKReturn string ISCSILibGetInitiatorsCallFilename string ISCSILibGetInitiatorsOKReturn []string ISCSILibGetSessionsOKReturn []goiscsi.ISCSISession ISCSILibPerformLoginCallTarget goiscsi.ISCSITarget ISCSILibCreateOrUpdateNodeCallTarget goiscsi.ISCSITarget ISCSILibCreateOrUpdateNodeCallOptions map[string]string }
MockHelper defines necessary fields used by mock methods
func (*MockHelper) FileCloseCall ¶
func (mh *MockHelper) FileCloseCall(m *wrp.MockLimitedFile) *gomock.Call
FileCloseCall mocks implementation of Close method in LimitedFile interface
func (*MockHelper) FileCloseErr ¶
func (mh *MockHelper) FileCloseErr(m *wrp.MockLimitedFile) *gomock.Call
FileCloseErr mocks returning error from FileCloseCall
func (*MockHelper) FileCloseOK ¶
func (mh *MockHelper) FileCloseOK(m *wrp.MockLimitedFile) *gomock.Call
FileCloseOK mocks returning success from FileCloseCall
func (*MockHelper) FilePathEvalSymlinksCall ¶
func (mh *MockHelper) FilePathEvalSymlinksCall(m *wrp.MockLimitedFilepath) *gomock.Call
FilePathEvalSymlinksCall mocks implementation of EvalSymlinks method in LimitedFilepath interface
func (*MockHelper) FilePathEvalSymlinksErr ¶
func (mh *MockHelper) FilePathEvalSymlinksErr(m *wrp.MockLimitedFilepath) *gomock.Call
FilePathEvalSymlinksErr mocks returning error from FilePathEvalSymlinksCall
func (*MockHelper) FilePathEvalSymlinksOK ¶
func (mh *MockHelper) FilePathEvalSymlinksOK(m *wrp.MockLimitedFilepath) *gomock.Call
FilePathEvalSymlinksOK mocks returning success from FilePathEvalSymlinksCall
func (*MockHelper) FilePathGlobCall ¶
func (mh *MockHelper) FilePathGlobCall(m *wrp.MockLimitedFilepath) *gomock.Call
FilePathGlobCall mocks implementation of Glob method in LimitedFilepath interface
func (*MockHelper) FilePathGlobErr ¶
func (mh *MockHelper) FilePathGlobErr(m *wrp.MockLimitedFilepath) *gomock.Call
FilePathGlobErr mocks returning error from FilePathGlobCall
func (*MockHelper) FilePathGlobOK ¶
func (mh *MockHelper) FilePathGlobOK(m *wrp.MockLimitedFilepath) *gomock.Call
FilePathGlobOK mocks returning success from FilePathGlobCall
func (*MockHelper) FileWriteStringCall ¶
func (mh *MockHelper) FileWriteStringCall(m *wrp.MockLimitedFile) *gomock.Call
FileWriteStringCall mocks implementation of WriteString method in LimitedFile interface
func (*MockHelper) FileWriteStringErr ¶
func (mh *MockHelper) FileWriteStringErr(m *wrp.MockLimitedFile) *gomock.Call
FileWriteStringErr mocks returning error from FileWriteStringCall
func (*MockHelper) FileWriteStringOK ¶
func (mh *MockHelper) FileWriteStringOK(m *wrp.MockLimitedFile) *gomock.Call
FileWriteStringOK mocks returning success from FileWriteStringCall
func (*MockHelper) ISCSILibCreateOrUpdateNodeCall ¶
func (mh *MockHelper) ISCSILibCreateOrUpdateNodeCall(m *wrp.MockISCSILib) *gomock.Call
ISCSILibCreateOrUpdateNodeCall mocks implementation of CreateOrUpdateNode method in ISCSILib interface
func (*MockHelper) ISCSILibCreateOrUpdateNodeErr ¶
func (mh *MockHelper) ISCSILibCreateOrUpdateNodeErr(m *wrp.MockISCSILib) *gomock.Call
ISCSILibCreateOrUpdateNodeErr mocks returning err from ISCSILibCreateOrUpdateNodeCall
func (*MockHelper) ISCSILibCreateOrUpdateNodeOK ¶
func (mh *MockHelper) ISCSILibCreateOrUpdateNodeOK(m *wrp.MockISCSILib) *gomock.Call
ISCSILibCreateOrUpdateNodeOK mocks returning success from ISCSILibCreateOrUpdateNodeCall
func (*MockHelper) ISCSILibGetInitiatorsCall ¶
func (mh *MockHelper) ISCSILibGetInitiatorsCall(m *wrp.MockISCSILib) *gomock.Call
ISCSILibGetInitiatorsCall mocks implementation of GetInitiators method in ISCSILib interface
func (*MockHelper) ISCSILibGetInitiatorsErr ¶
func (mh *MockHelper) ISCSILibGetInitiatorsErr(m *wrp.MockISCSILib) *gomock.Call
ISCSILibGetInitiatorsErr mocks returning error from ISCSILibGetInitiatorsCall
func (*MockHelper) ISCSILibGetInitiatorsOK ¶
func (mh *MockHelper) ISCSILibGetInitiatorsOK(m *wrp.MockISCSILib) *gomock.Call
ISCSILibGetInitiatorsOK mocks returning success from ISCSILibGetInitiatorsCall
func (*MockHelper) ISCSILibGetSessionsCall ¶
func (mh *MockHelper) ISCSILibGetSessionsCall(m *wrp.MockISCSILib) *gomock.Call
ISCSILibGetSessionsCall mocks implementation of GetSessions method from ISCSILib interface
func (*MockHelper) ISCSILibGetSessionsErr ¶
func (mh *MockHelper) ISCSILibGetSessionsErr(m *wrp.MockISCSILib) *gomock.Call
ISCSILibGetSessionsErr mocks returning error from ISCSILibGetSessionsCall
func (*MockHelper) ISCSILibGetSessionsOK ¶
func (mh *MockHelper) ISCSILibGetSessionsOK(m *wrp.MockISCSILib) *gomock.Call
ISCSILibGetSessionsOK mocks returning success from ISCSILibGetSessionsCall
func (*MockHelper) ISCSILibPerformLoginCall ¶
func (mh *MockHelper) ISCSILibPerformLoginCall(m *wrp.MockISCSILib) *gomock.Call
ISCSILibPerformLoginCall mocks implementation of PerformLogin method in ISCSILib interface
func (*MockHelper) ISCSILibPerformLoginErr ¶
func (mh *MockHelper) ISCSILibPerformLoginErr(m *wrp.MockISCSILib) *gomock.Call
ISCSILibPerformLoginErr mocks returning error from ISCSILibPerformLoginCall
func (*MockHelper) ISCSILibPerformLoginOK ¶
func (mh *MockHelper) ISCSILibPerformLoginOK(m *wrp.MockISCSILib) *gomock.Call
ISCSILibPerformLoginOK mocks returning success from ISCSILibPerformLoginCall
func (*MockHelper) OSExecCmdCall ¶
func (mh *MockHelper) OSExecCmdCall(m *wrp.MockLimitedOSExecCmd) *gomock.Call
OSExecCmdCall mocks implementation of CombinedOutput method in LimitedOSExecCmd interface
func (*MockHelper) OSExecCmdErr ¶
func (mh *MockHelper) OSExecCmdErr(m *wrp.MockLimitedOSExecCmd) *gomock.Call
OSExecCmdErr mocks returning error from OSExecCmdCall
func (*MockHelper) OSExecCmdOK ¶
func (mh *MockHelper) OSExecCmdOK(m *wrp.MockLimitedOSExecCmd) *gomock.Call
OSExecCmdOK mocks returning success from OSExecCmdCall
func (*MockHelper) OSExecCommandContextCall ¶
func (mh *MockHelper) OSExecCommandContextCall(m *wrp.MockLimitedOSExec) *gomock.Call
OSExecCommandContextCall mocks implementation of CommandContext method from LimitedOSExec interface
func (*MockHelper) OSExecCommandContextOK ¶
func (mh *MockHelper) OSExecCommandContextOK(m *wrp.MockLimitedOSExec) ( *gomock.Call, *wrp.MockLimitedOSExecCmd, )
OSExecCommandContextOK mocks returning success from OSExecCommandContextCall
func (*MockHelper) OSIsNotExistCall ¶
func (mh *MockHelper) OSIsNotExistCall(m *wrp.MockLimitedOS) *gomock.Call
OSIsNotExistCall mocks implementation of IsNotExist method in LimitedOS interface
func (*MockHelper) OSIsNotExistOK ¶
func (mh *MockHelper) OSIsNotExistOK(m *wrp.MockLimitedOS) *gomock.Call
OSIsNotExistOK mocks returning success from OSIsNotExistCall
func (*MockHelper) OSOpenFileCall ¶
func (mh *MockHelper) OSOpenFileCall(m *wrp.MockLimitedOS) *gomock.Call
OSOpenFileCall mocks implementation of OpenFile method in LimitedOS interface
func (*MockHelper) OSOpenFileCallErr ¶
func (mh *MockHelper) OSOpenFileCallErr(m *wrp.MockLimitedOS) *gomock.Call
OSOpenFileCallErr mocks returning error from OSOpenFileCall
func (*MockHelper) OSOpenFileCallOK ¶
func (mh *MockHelper) OSOpenFileCallOK(m *wrp.MockLimitedOS) (*gomock.Call, *wrp.MockLimitedFile)
OSOpenFileCallOK mocks returning success from OSOpenFileCall
func (*MockHelper) OSReadFileCall ¶ added in v1.9.0
func (mh *MockHelper) OSReadFileCall(m *wrp.MockLimitedOS) *gomock.Call
OSReadFileCall mocks implementation of ReadFile method in LimitedOS interface
func (*MockHelper) OSReadFileErr ¶ added in v1.9.0
func (mh *MockHelper) OSReadFileErr(m *wrp.MockLimitedOS) *gomock.Call
OSReadFileErr mocks returning error from OSReadFileCall
func (*MockHelper) OSReadFileOK ¶ added in v1.9.0
func (mh *MockHelper) OSReadFileOK(m *wrp.MockLimitedOS) *gomock.Call
OSReadFileOK mocks returning success from OSReadFileCall
func (*MockHelper) OSStatCall ¶
func (mh *MockHelper) OSStatCall(m *wrp.MockLimitedOS) *gomock.Call
OSStatCall contains mock implementation of Stat method in LimitedOS interface
func (*MockHelper) OSStatCallErr ¶
func (mh *MockHelper) OSStatCallErr(m *wrp.MockLimitedOS) *gomock.Call
OSStatCallErr mocks returning error for OSStatCall
func (*MockHelper) OSStatCallOK ¶
func (mh *MockHelper) OSStatCallOK(m *wrp.MockLimitedOS) (*gomock.Call, *wrp.MockLimitedFileInfo)
OSStatCallOK mocks returning success for OSStatCall
func (*MockHelper) OSStatFileInfoIsDirCall ¶
func (mh *MockHelper) OSStatFileInfoIsDirCall(m *wrp.MockLimitedFileInfo) *gomock.Call
OSStatFileInfoIsDirCall contains mock implementation of IsDir method in LimitedFileInfo interface
func (*MockHelper) OSStatFileInfoIsDirOK ¶
func (mh *MockHelper) OSStatFileInfoIsDirOK(m *wrp.MockLimitedFileInfo) *gomock.Call
OSStatFileInfoIsDirOK mocks returning success from OSStatFileInfoIsDirCall