Documentation ¶
Overview ¶
Package mock_files is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileCreator ¶
type FileCreator interface { CreateFolder(path string) (fullpath string, err error) CreateFile(byteArray []byte, path string, name string, fileType string) (cleanName string, err error) }
FileCreator is an interface to encapsulate the file creation process. Is has 2 implementations in memory and one that uses files on disk.
func NewDiskFileCreator ¶
func NewDiskFileCreator() FileCreator
NewDiskFileCreator creates a new FileCreator instance
func NewInMemoryFileCreator ¶
func NewInMemoryFileCreator() FileCreator
NewInMemoryFileCreator creates a new instance of FileCreator
type MockFileCreator ¶
type MockFileCreator struct {
// contains filtered or unexported fields
}
MockFileCreator is a mock of FileCreator interface
func CreateFileCreatorMockFactory ¶
func CreateFileCreatorMockFactory(t *testing.T) *MockFileCreator
CreateFileCreatorMockFactory returns a mock version of the filecreator interface
func NewMockFileCreator ¶
func NewMockFileCreator(ctrl *gomock.Controller) *MockFileCreator
NewMockFileCreator creates a new mock instance
func (*MockFileCreator) CreateFile ¶
func (m *MockFileCreator) CreateFile(arg0 []byte, arg1, arg2, arg3 string) (string, error)
CreateFile mocks base method
func (*MockFileCreator) CreateFolder ¶
func (m *MockFileCreator) CreateFolder(arg0 string) (string, error)
CreateFolder mocks base method
func (*MockFileCreator) EXPECT ¶
func (m *MockFileCreator) EXPECT() *MockFileCreatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockFileCreatorMockRecorder ¶
type MockFileCreatorMockRecorder struct {
// contains filtered or unexported fields
}
MockFileCreatorMockRecorder is the mock recorder for MockFileCreator
func (*MockFileCreatorMockRecorder) CreateFile ¶
func (mr *MockFileCreatorMockRecorder) CreateFile(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CreateFile indicates an expected call of CreateFile
func (*MockFileCreatorMockRecorder) CreateFolder ¶
func (mr *MockFileCreatorMockRecorder) CreateFolder(arg0 interface{}) *gomock.Call
CreateFolder indicates an expected call of CreateFolder