mocks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: github.com/gosom/simplemigrate (interfaces: DBDriver)

Generated by this command:

mockgen -destination=internal/mocks/mock_dbdriver.go -package=mocks . DBDriver

Package mocks is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: github.com/gosom/simplemigrate (interfaces: QueryValidator)

Generated by this command:

mockgen -destination=internal/mocks/mock_queryvalidator.go -package=mocks . QueryValidator

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDBDriver

type MockDBDriver struct {
	// contains filtered or unexported fields
}

MockDBDriver is a mock of DBDriver interface.

func NewMockDBDriver

func NewMockDBDriver(ctrl *gomock.Controller) *MockDBDriver

NewMockDBDriver creates a new mock instance.

func (*MockDBDriver) ApplyMigrations

func (m *MockDBDriver) ApplyMigrations(arg0 context.Context, arg1 string, arg2 bool, arg3 []simplemigrate.Migration) error

ApplyMigrations mocks base method.

func (*MockDBDriver) Close

func (m *MockDBDriver) Close(arg0 context.Context) error

Close mocks base method.

func (*MockDBDriver) CreateMigrationsTable

func (m *MockDBDriver) CreateMigrationsTable(arg0 context.Context, arg1 string) error

CreateMigrationsTable mocks base method.

func (*MockDBDriver) Dialect

func (m *MockDBDriver) Dialect() string

Dialect mocks base method.

func (*MockDBDriver) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDBDriver) SelectMigrations

func (m *MockDBDriver) SelectMigrations(arg0 context.Context, arg1 string) ([]simplemigrate.Migration, error)

SelectMigrations mocks base method.

type MockDBDriverMockRecorder

type MockDBDriverMockRecorder struct {
	// contains filtered or unexported fields
}

MockDBDriverMockRecorder is the mock recorder for MockDBDriver.

func (*MockDBDriverMockRecorder) ApplyMigrations

func (mr *MockDBDriverMockRecorder) ApplyMigrations(arg0, arg1, arg2, arg3 any) *gomock.Call

ApplyMigrations indicates an expected call of ApplyMigrations.

func (*MockDBDriverMockRecorder) Close

func (mr *MockDBDriverMockRecorder) Close(arg0 any) *gomock.Call

Close indicates an expected call of Close.

func (*MockDBDriverMockRecorder) CreateMigrationsTable

func (mr *MockDBDriverMockRecorder) CreateMigrationsTable(arg0, arg1 any) *gomock.Call

CreateMigrationsTable indicates an expected call of CreateMigrationsTable.

func (*MockDBDriverMockRecorder) Dialect

func (mr *MockDBDriverMockRecorder) Dialect() *gomock.Call

Dialect indicates an expected call of Dialect.

func (*MockDBDriverMockRecorder) SelectMigrations

func (mr *MockDBDriverMockRecorder) SelectMigrations(arg0, arg1 any) *gomock.Call

SelectMigrations indicates an expected call of SelectMigrations.

type MockQueryValidator

type MockQueryValidator struct {
	// contains filtered or unexported fields
}

MockQueryValidator is a mock of QueryValidator interface.

func NewMockQueryValidator

func NewMockQueryValidator(ctrl *gomock.Controller) *MockQueryValidator

NewMockQueryValidator creates a new mock instance.

func (*MockQueryValidator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockQueryValidator) ValidateQuery

func (m *MockQueryValidator) ValidateQuery(arg0 context.Context, arg1, arg2 string) error

ValidateQuery mocks base method.

type MockQueryValidatorMockRecorder

type MockQueryValidatorMockRecorder struct {
	// contains filtered or unexported fields
}

MockQueryValidatorMockRecorder is the mock recorder for MockQueryValidator.

func (*MockQueryValidatorMockRecorder) ValidateQuery

func (mr *MockQueryValidatorMockRecorder) ValidateQuery(arg0, arg1, arg2 any) *gomock.Call

ValidateQuery indicates an expected call of ValidateQuery.

Jump to

Keyboard shortcuts

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