Documentation ¶
Index ¶
- type MockDatabase
- func (_m *MockDatabase) BatchInsert(ctx context.Context, data []map[string]interface{}, sql string) error
- func (_m *MockDatabase) Close() error
- func (_m *MockDatabase) CreateSchema(ctx context.Context, schema string) error
- func (_m *MockDatabase) CreateTable(ctx context.Context, sql string) error
- func (_m *MockDatabase) InitDatabaseConn(ctx context.Context, roles string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDatabase ¶
MockDatabase is an autogenerated mock type for the Database type
func NewMockDatabase ¶
func NewMockDatabase(t interface { mock.TestingT Cleanup(func()) }) *MockDatabase
NewMockDatabase creates a new instance of MockDatabase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockDatabase) BatchInsert ¶
func (_m *MockDatabase) BatchInsert(ctx context.Context, data []map[string]interface{}, sql string) error
BatchInsert provides a mock function with given fields: ctx, data, sql
func (*MockDatabase) Close ¶
func (_m *MockDatabase) Close() error
Close provides a mock function with no fields
func (*MockDatabase) CreateSchema ¶
func (_m *MockDatabase) CreateSchema(ctx context.Context, schema string) error
CreateSchema provides a mock function with given fields: ctx, schema
func (*MockDatabase) CreateTable ¶
func (_m *MockDatabase) CreateTable(ctx context.Context, sql string) error
CreateTable provides a mock function with given fields: ctx, sql
func (*MockDatabase) InitDatabaseConn ¶
func (_m *MockDatabase) InitDatabaseConn(ctx context.Context, roles string) error
InitDatabaseConn provides a mock function with given fields: ctx, roles
Click to show internal directories.
Click to hide internal directories.