Documentation
¶
Index ¶
- type DB
- type IDB
- type MockIDB
- type MockIDB_CreateDatabase_Call
- func (_c *MockIDB_CreateDatabase_Call) Return(err error) *MockIDB_CreateDatabase_Call
- func (_c *MockIDB_CreateDatabase_Call) Run(run func(ctx context.Context)) *MockIDB_CreateDatabase_Call
- func (_c *MockIDB_CreateDatabase_Call) RunAndReturn(run func(ctx context.Context) error) *MockIDB_CreateDatabase_Call
- type MockIDB_DropDatabase_Call
- type MockIDB_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIDB ¶
MockIDB is an autogenerated mock type for the IDB type
func NewMockIDB ¶
NewMockIDB creates a new instance of MockIDB. 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 (*MockIDB) CreateDatabase ¶
CreateDatabase provides a mock function for the type MockIDB
func (*MockIDB) DropDatabase ¶
DropDatabase provides a mock function for the type MockIDB
func (*MockIDB) EXPECT ¶
func (_m *MockIDB) EXPECT() *MockIDB_Expecter
type MockIDB_CreateDatabase_Call ¶
MockIDB_CreateDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateDatabase'
func (*MockIDB_CreateDatabase_Call) Return ¶
func (_c *MockIDB_CreateDatabase_Call) Return(err error) *MockIDB_CreateDatabase_Call
func (*MockIDB_CreateDatabase_Call) Run ¶
func (_c *MockIDB_CreateDatabase_Call) Run(run func(ctx context.Context)) *MockIDB_CreateDatabase_Call
func (*MockIDB_CreateDatabase_Call) RunAndReturn ¶
func (_c *MockIDB_CreateDatabase_Call) RunAndReturn(run func(ctx context.Context) error) *MockIDB_CreateDatabase_Call
type MockIDB_DropDatabase_Call ¶
MockIDB_DropDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropDatabase'
func (*MockIDB_DropDatabase_Call) Return ¶
func (_c *MockIDB_DropDatabase_Call) Return(err error) *MockIDB_DropDatabase_Call
func (*MockIDB_DropDatabase_Call) Run ¶
func (_c *MockIDB_DropDatabase_Call) Run(run func(ctx context.Context)) *MockIDB_DropDatabase_Call
func (*MockIDB_DropDatabase_Call) RunAndReturn ¶
func (_c *MockIDB_DropDatabase_Call) RunAndReturn(run func(ctx context.Context) error) *MockIDB_DropDatabase_Call
type MockIDB_Expecter ¶
type MockIDB_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIDB_Expecter) CreateDatabase ¶
func (_e *MockIDB_Expecter) CreateDatabase(ctx any) *MockIDB_CreateDatabase_Call
CreateDatabase is a helper method to define mock.On call
- ctx context.Context
func (*MockIDB_Expecter) DropDatabase ¶
func (_e *MockIDB_Expecter) DropDatabase(ctx any) *MockIDB_DropDatabase_Call
DropDatabase is a helper method to define mock.On call
- ctx context.Context