Documentation
¶
Index ¶
- type MockMigrator
- type MockMigrator_Apply_Call
- func (_c *MockMigrator_Apply_Call) Return(err error) *MockMigrator_Apply_Call
- func (_c *MockMigrator_Apply_Call) Run(run func(ctx context.Context, pool *pgxpool.Pool, logger *zap.Logger)) *MockMigrator_Apply_Call
- func (_c *MockMigrator_Apply_Call) RunAndReturn(run func(ctx context.Context, pool *pgxpool.Pool, logger *zap.Logger) error) *MockMigrator_Apply_Call
- type MockMigrator_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMigrator ¶
MockMigrator is an autogenerated mock type for the Migrator type
func NewMockMigrator ¶
func NewMockMigrator(t interface {
mock.TestingT
Cleanup(func())
}) *MockMigrator
NewMockMigrator creates a new instance of MockMigrator. 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 (*MockMigrator) EXPECT ¶
func (_m *MockMigrator) EXPECT() *MockMigrator_Expecter
type MockMigrator_Apply_Call ¶
MockMigrator_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*MockMigrator_Apply_Call) Return ¶
func (_c *MockMigrator_Apply_Call) Return(err error) *MockMigrator_Apply_Call
func (*MockMigrator_Apply_Call) Run ¶
func (_c *MockMigrator_Apply_Call) Run(run func(ctx context.Context, pool *pgxpool.Pool, logger *zap.Logger)) *MockMigrator_Apply_Call
func (*MockMigrator_Apply_Call) RunAndReturn ¶
func (_c *MockMigrator_Apply_Call) RunAndReturn(run func(ctx context.Context, pool *pgxpool.Pool, logger *zap.Logger) error) *MockMigrator_Apply_Call
type MockMigrator_Expecter ¶
type MockMigrator_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMigrator_Expecter) Apply ¶
func (_e *MockMigrator_Expecter) Apply(ctx interface{}, pool interface{}, logger interface{}) *MockMigrator_Apply_Call
Apply is a helper method to define mock.On call
- ctx
- pool
- logger
Click to show internal directories.
Click to hide internal directories.