migrationmocks

package
v0.2025.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMigrator

type MockMigrator struct {
	mock.Mock
}

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) Apply

func (_mock *MockMigrator) Apply(ctx context.Context, pool *pgxpool.Pool, logger *zap.Logger) error

Apply provides a mock function for the type MockMigrator

func (*MockMigrator) EXPECT

func (_m *MockMigrator) EXPECT() *MockMigrator_Expecter

type MockMigrator_Apply_Call

type MockMigrator_Apply_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL