Documentation ¶
Overview ¶
Package filehandler is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileHandler ¶
type FileHandler interface { PrintToFile(content string) (string, int, error) PrintToJSONFile(content interface{}) (string, int, error) }
FileHandler : Interface of file handler
type FileHandler1 ¶
type FileHandler1 struct {
FilePath string
}
FileHandler1 : Struct implementing interface FileHandler
func NewFileHandler1 ¶
func NewFileHandler1(filePath string) *FileHandler1
NewFileHandler1 : Get new instance of this type
func (*FileHandler1) PrintToFile ¶
func (f *FileHandler1) PrintToFile(content string) (string, int, error)
PrintToFile : Implementing interface of FileHandler, to print to general file. Output: [file name, total byte read, error]
func (*FileHandler1) PrintToJSONFile ¶
func (f *FileHandler1) PrintToJSONFile(content interface{}) (string, int, error)
PrintToJSONFile : Implementing interface of FileHandler, to print to JSON file. Output: [file name, total byte read, error]
type MockFileHandler ¶
type MockFileHandler struct {
// contains filtered or unexported fields
}
MockFileHandler is a mock of FileHandler interface
func NewMockFileHandler ¶
func NewMockFileHandler(ctrl *gomock.Controller) *MockFileHandler
NewMockFileHandler creates a new mock instance
func (*MockFileHandler) EXPECT ¶
func (m *MockFileHandler) EXPECT() *MockFileHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFileHandler) PrintToFile ¶
func (m *MockFileHandler) PrintToFile(content string) (string, int, error)
PrintToFile mocks base method
func (*MockFileHandler) PrintToJSONFile ¶
func (m *MockFileHandler) PrintToJSONFile(content interface{}) (string, int, error)
PrintToJSONFile mocks base method
type MockFileHandlerMockRecorder ¶
type MockFileHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockFileHandlerMockRecorder is the mock recorder for MockFileHandler
func (*MockFileHandlerMockRecorder) PrintToFile ¶
func (mr *MockFileHandlerMockRecorder) PrintToFile(content interface{}) *gomock.Call
PrintToFile indicates an expected call of PrintToFile
func (*MockFileHandlerMockRecorder) PrintToJSONFile ¶
func (mr *MockFileHandlerMockRecorder) PrintToJSONFile(content interface{}) *gomock.Call
PrintToJSONFile indicates an expected call of PrintToJSONFile