Documentation ¶
Overview ¶
Package provider is a generated GoMock package.
Index ¶
- Variables
- func IsPathDir(inputPath string) bool
- func IsPathExists(inputPath string) bool
- type ImportFn
- type MockProvider
- func (m *MockProvider) BeginTx() error
- func (m *MockProvider) CommitTx() error
- func (m *MockProvider) DB() *gorm.DB
- func (m *MockProvider) EXPECT() *MockProviderMockRecorder
- func (m *MockProvider) ImportFns(arg0 string) ([]ImportFn, error)
- func (m *MockProvider) Migrate() error
- func (m *MockProvider) Name() string
- func (m *MockProvider) RollbackTx() error
- func (m *MockProvider) TablePrefix() string
- type MockProviderMockRecorder
- func (mr *MockProviderMockRecorder) BeginTx() *gomock.Call
- func (mr *MockProviderMockRecorder) CommitTx() *gomock.Call
- func (mr *MockProviderMockRecorder) DB() *gomock.Call
- func (mr *MockProviderMockRecorder) ImportFns(arg0 interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) Migrate() *gomock.Call
- func (mr *MockProviderMockRecorder) Name() *gomock.Call
- func (mr *MockProviderMockRecorder) RollbackTx() *gomock.Call
- func (mr *MockProviderMockRecorder) TablePrefix() *gomock.Call
- type Provider
Constants ¶
This section is empty.
Variables ¶
var ErrInputPathShouldBeDirectory = errors.New("input path should be directory")
var ErrInputPathShouldBeFile = errors.New("input path should be file")
Functions ¶
func IsPathExists ¶
Types ¶
type ImportFn ¶
type ImportFn struct {
// contains filtered or unexported fields
}
func NewImportFn ¶
type MockProvider ¶
type MockProvider struct {
// contains filtered or unexported fields
}
MockProvider is a mock of Provider interface
func NewMockProvider ¶
func NewMockProvider(ctrl *gomock.Controller) *MockProvider
NewMockProvider creates a new mock instance
func (*MockProvider) EXPECT ¶
func (m *MockProvider) EXPECT() *MockProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockProvider) ImportFns ¶
func (m *MockProvider) ImportFns(arg0 string) ([]ImportFn, error)
ImportFns mocks base method
func (*MockProvider) RollbackTx ¶
func (m *MockProvider) RollbackTx() error
RollbackTx mocks base method
func (*MockProvider) TablePrefix ¶
func (m *MockProvider) TablePrefix() string
TablePrefix mocks base method
type MockProviderMockRecorder ¶
type MockProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockProviderMockRecorder is the mock recorder for MockProvider
func (*MockProviderMockRecorder) BeginTx ¶
func (mr *MockProviderMockRecorder) BeginTx() *gomock.Call
BeginTx indicates an expected call of BeginTx
func (*MockProviderMockRecorder) CommitTx ¶
func (mr *MockProviderMockRecorder) CommitTx() *gomock.Call
CommitTx indicates an expected call of CommitTx
func (*MockProviderMockRecorder) DB ¶
func (mr *MockProviderMockRecorder) DB() *gomock.Call
DB indicates an expected call of DB
func (*MockProviderMockRecorder) ImportFns ¶
func (mr *MockProviderMockRecorder) ImportFns(arg0 interface{}) *gomock.Call
ImportFns indicates an expected call of ImportFns
func (*MockProviderMockRecorder) Migrate ¶
func (mr *MockProviderMockRecorder) Migrate() *gomock.Call
Migrate indicates an expected call of Migrate
func (*MockProviderMockRecorder) Name ¶
func (mr *MockProviderMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name
func (*MockProviderMockRecorder) RollbackTx ¶
func (mr *MockProviderMockRecorder) RollbackTx() *gomock.Call
RollbackTx indicates an expected call of RollbackTx
func (*MockProviderMockRecorder) TablePrefix ¶
func (mr *MockProviderMockRecorder) TablePrefix() *gomock.Call
TablePrefix indicates an expected call of TablePrefix