mockservice

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console added in v1.1.0

type Console struct {
	mock.Mock
}

Console is an autogenerated mock type for the Console type

func NewConsole added in v1.1.0

func NewConsole(t interface {
	mock.TestingT
	Cleanup(func())
}) *Console

NewConsole creates a new instance of Console. 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 (*Console) Confirm added in v1.1.0

func (_m *Console) Confirm(s string) bool

Confirm provides a mock function with given fields: s

func (*Console) EXPECT added in v1.1.0

func (_m *Console) EXPECT() *Console_Expecter

func (*Console) Error added in v1.1.0

func (_m *Console) Error(message string)

Error provides a mock function with given fields: message

func (*Console) ErrorLn added in v1.1.0

func (_m *Console) ErrorLn(message string)

ErrorLn provides a mock function with given fields: message

func (*Console) Errorf added in v1.1.0

func (_m *Console) Errorf(message string, a ...any)

Errorf provides a mock function with given fields: message, a

func (*Console) Fatal added in v1.1.0

func (_m *Console) Fatal(err error)

Fatal provides a mock function with given fields: err

func (*Console) Info added in v1.1.0

func (_m *Console) Info(message string)

Info provides a mock function with given fields: message

func (*Console) InfoLn added in v1.1.0

func (_m *Console) InfoLn(message string)

InfoLn provides a mock function with given fields: message

func (*Console) Infof added in v1.1.0

func (_m *Console) Infof(message string, a ...any)

Infof provides a mock function with given fields: message, a

func (*Console) NumberPlural added in v1.1.0

func (_m *Console) NumberPlural(count int, one string, many string) string

NumberPlural provides a mock function with given fields: count, one, many

func (*Console) Success added in v1.1.0

func (_m *Console) Success(message string)

Success provides a mock function with given fields: message

func (*Console) SuccessLn added in v1.1.0

func (_m *Console) SuccessLn(message string)

SuccessLn provides a mock function with given fields: message

func (*Console) Successf added in v1.1.0

func (_m *Console) Successf(message string, a ...any)

Successf provides a mock function with given fields: message, a

func (*Console) Warn added in v1.1.0

func (_m *Console) Warn(message string)

Warn provides a mock function with given fields: message

func (*Console) WarnLn added in v1.1.0

func (_m *Console) WarnLn(message string)

WarnLn provides a mock function with given fields: message

func (*Console) Warnf added in v1.1.0

func (_m *Console) Warnf(message string, a ...any)

Warnf provides a mock function with given fields: message, a

type Console_Confirm_Call added in v1.1.0

type Console_Confirm_Call struct {
	*mock.Call
}

Console_Confirm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Confirm'

func (*Console_Confirm_Call) Return added in v1.1.0

func (*Console_Confirm_Call) Run added in v1.1.0

func (_c *Console_Confirm_Call) Run(run func(s string)) *Console_Confirm_Call

func (*Console_Confirm_Call) RunAndReturn added in v1.1.0

func (_c *Console_Confirm_Call) RunAndReturn(run func(string) bool) *Console_Confirm_Call

type Console_ErrorLn_Call added in v1.1.0

type Console_ErrorLn_Call struct {
	*mock.Call
}

Console_ErrorLn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ErrorLn'

func (*Console_ErrorLn_Call) Return added in v1.1.0

func (*Console_ErrorLn_Call) Run added in v1.1.0

func (_c *Console_ErrorLn_Call) Run(run func(message string)) *Console_ErrorLn_Call

func (*Console_ErrorLn_Call) RunAndReturn added in v1.1.0

func (_c *Console_ErrorLn_Call) RunAndReturn(run func(string)) *Console_ErrorLn_Call

type Console_Error_Call added in v1.1.0

type Console_Error_Call struct {
	*mock.Call
}

Console_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'

func (*Console_Error_Call) Return added in v1.1.0

func (_c *Console_Error_Call) Return() *Console_Error_Call

func (*Console_Error_Call) Run added in v1.1.0

func (_c *Console_Error_Call) Run(run func(message string)) *Console_Error_Call

func (*Console_Error_Call) RunAndReturn added in v1.1.0

func (_c *Console_Error_Call) RunAndReturn(run func(string)) *Console_Error_Call

type Console_Errorf_Call added in v1.1.0

type Console_Errorf_Call struct {
	*mock.Call
}

Console_Errorf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Errorf'

func (*Console_Errorf_Call) Return added in v1.1.0

func (*Console_Errorf_Call) Run added in v1.1.0

func (_c *Console_Errorf_Call) Run(run func(message string, a ...any)) *Console_Errorf_Call

func (*Console_Errorf_Call) RunAndReturn added in v1.1.0

func (_c *Console_Errorf_Call) RunAndReturn(run func(string, ...any)) *Console_Errorf_Call

type Console_Expecter added in v1.1.0

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

func (*Console_Expecter) Confirm added in v1.1.0

func (_e *Console_Expecter) Confirm(s interface{}) *Console_Confirm_Call

Confirm is a helper method to define mock.On call

  • s string

func (*Console_Expecter) Error added in v1.1.0

func (_e *Console_Expecter) Error(message interface{}) *Console_Error_Call

Error is a helper method to define mock.On call

  • message string

func (*Console_Expecter) ErrorLn added in v1.1.0

func (_e *Console_Expecter) ErrorLn(message interface{}) *Console_ErrorLn_Call

ErrorLn is a helper method to define mock.On call

  • message string

func (*Console_Expecter) Errorf added in v1.1.0

func (_e *Console_Expecter) Errorf(message interface{}, a ...interface{}) *Console_Errorf_Call

Errorf is a helper method to define mock.On call

  • message string
  • a ...any

func (*Console_Expecter) Fatal added in v1.1.0

func (_e *Console_Expecter) Fatal(err interface{}) *Console_Fatal_Call

Fatal is a helper method to define mock.On call

  • err error

func (*Console_Expecter) Info added in v1.1.0

func (_e *Console_Expecter) Info(message interface{}) *Console_Info_Call

Info is a helper method to define mock.On call

  • message string

func (*Console_Expecter) InfoLn added in v1.1.0

func (_e *Console_Expecter) InfoLn(message interface{}) *Console_InfoLn_Call

InfoLn is a helper method to define mock.On call

  • message string

func (*Console_Expecter) Infof added in v1.1.0

func (_e *Console_Expecter) Infof(message interface{}, a ...interface{}) *Console_Infof_Call

Infof is a helper method to define mock.On call

  • message string
  • a ...any

func (*Console_Expecter) NumberPlural added in v1.1.0

func (_e *Console_Expecter) NumberPlural(count interface{}, one interface{}, many interface{}) *Console_NumberPlural_Call

NumberPlural is a helper method to define mock.On call

  • count int
  • one string
  • many string

func (*Console_Expecter) Success added in v1.1.0

func (_e *Console_Expecter) Success(message interface{}) *Console_Success_Call

Success is a helper method to define mock.On call

  • message string

func (*Console_Expecter) SuccessLn added in v1.1.0

func (_e *Console_Expecter) SuccessLn(message interface{}) *Console_SuccessLn_Call

SuccessLn is a helper method to define mock.On call

  • message string

func (*Console_Expecter) Successf added in v1.1.0

func (_e *Console_Expecter) Successf(message interface{}, a ...interface{}) *Console_Successf_Call

Successf is a helper method to define mock.On call

  • message string
  • a ...any

func (*Console_Expecter) Warn added in v1.1.0

func (_e *Console_Expecter) Warn(message interface{}) *Console_Warn_Call

Warn is a helper method to define mock.On call

  • message string

func (*Console_Expecter) WarnLn added in v1.1.0

func (_e *Console_Expecter) WarnLn(message interface{}) *Console_WarnLn_Call

WarnLn is a helper method to define mock.On call

  • message string

func (*Console_Expecter) Warnf added in v1.1.0

func (_e *Console_Expecter) Warnf(message interface{}, a ...interface{}) *Console_Warnf_Call

Warnf is a helper method to define mock.On call

  • message string
  • a ...any

type Console_Fatal_Call added in v1.1.0

type Console_Fatal_Call struct {
	*mock.Call
}

Console_Fatal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fatal'

func (*Console_Fatal_Call) Return added in v1.1.0

func (_c *Console_Fatal_Call) Return() *Console_Fatal_Call

func (*Console_Fatal_Call) Run added in v1.1.0

func (_c *Console_Fatal_Call) Run(run func(err error)) *Console_Fatal_Call

func (*Console_Fatal_Call) RunAndReturn added in v1.1.0

func (_c *Console_Fatal_Call) RunAndReturn(run func(error)) *Console_Fatal_Call

type Console_InfoLn_Call added in v1.1.0

type Console_InfoLn_Call struct {
	*mock.Call
}

Console_InfoLn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InfoLn'

func (*Console_InfoLn_Call) Return added in v1.1.0

func (*Console_InfoLn_Call) Run added in v1.1.0

func (_c *Console_InfoLn_Call) Run(run func(message string)) *Console_InfoLn_Call

func (*Console_InfoLn_Call) RunAndReturn added in v1.1.0

func (_c *Console_InfoLn_Call) RunAndReturn(run func(string)) *Console_InfoLn_Call

type Console_Info_Call added in v1.1.0

type Console_Info_Call struct {
	*mock.Call
}

Console_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'

func (*Console_Info_Call) Return added in v1.1.0

func (_c *Console_Info_Call) Return() *Console_Info_Call

func (*Console_Info_Call) Run added in v1.1.0

func (_c *Console_Info_Call) Run(run func(message string)) *Console_Info_Call

func (*Console_Info_Call) RunAndReturn added in v1.1.0

func (_c *Console_Info_Call) RunAndReturn(run func(string)) *Console_Info_Call

type Console_Infof_Call added in v1.1.0

type Console_Infof_Call struct {
	*mock.Call
}

Console_Infof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Infof'

func (*Console_Infof_Call) Return added in v1.1.0

func (_c *Console_Infof_Call) Return() *Console_Infof_Call

func (*Console_Infof_Call) Run added in v1.1.0

func (_c *Console_Infof_Call) Run(run func(message string, a ...any)) *Console_Infof_Call

func (*Console_Infof_Call) RunAndReturn added in v1.1.0

func (_c *Console_Infof_Call) RunAndReturn(run func(string, ...any)) *Console_Infof_Call

type Console_NumberPlural_Call added in v1.1.0

type Console_NumberPlural_Call struct {
	*mock.Call
}

Console_NumberPlural_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NumberPlural'

func (*Console_NumberPlural_Call) Return added in v1.1.0

func (*Console_NumberPlural_Call) Run added in v1.1.0

func (_c *Console_NumberPlural_Call) Run(run func(count int, one string, many string)) *Console_NumberPlural_Call

func (*Console_NumberPlural_Call) RunAndReturn added in v1.1.0

type Console_SuccessLn_Call added in v1.1.0

type Console_SuccessLn_Call struct {
	*mock.Call
}

Console_SuccessLn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuccessLn'

func (*Console_SuccessLn_Call) Return added in v1.1.0

func (*Console_SuccessLn_Call) Run added in v1.1.0

func (_c *Console_SuccessLn_Call) Run(run func(message string)) *Console_SuccessLn_Call

func (*Console_SuccessLn_Call) RunAndReturn added in v1.1.0

func (_c *Console_SuccessLn_Call) RunAndReturn(run func(string)) *Console_SuccessLn_Call

type Console_Success_Call added in v1.1.0

type Console_Success_Call struct {
	*mock.Call
}

Console_Success_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Success'

func (*Console_Success_Call) Return added in v1.1.0

func (*Console_Success_Call) Run added in v1.1.0

func (_c *Console_Success_Call) Run(run func(message string)) *Console_Success_Call

func (*Console_Success_Call) RunAndReturn added in v1.1.0

func (_c *Console_Success_Call) RunAndReturn(run func(string)) *Console_Success_Call

type Console_Successf_Call added in v1.1.0

type Console_Successf_Call struct {
	*mock.Call
}

Console_Successf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Successf'

func (*Console_Successf_Call) Return added in v1.1.0

func (*Console_Successf_Call) Run added in v1.1.0

func (_c *Console_Successf_Call) Run(run func(message string, a ...any)) *Console_Successf_Call

func (*Console_Successf_Call) RunAndReturn added in v1.1.0

func (_c *Console_Successf_Call) RunAndReturn(run func(string, ...any)) *Console_Successf_Call

type Console_WarnLn_Call added in v1.1.0

type Console_WarnLn_Call struct {
	*mock.Call
}

Console_WarnLn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WarnLn'

func (*Console_WarnLn_Call) Return added in v1.1.0

func (*Console_WarnLn_Call) Run added in v1.1.0

func (_c *Console_WarnLn_Call) Run(run func(message string)) *Console_WarnLn_Call

func (*Console_WarnLn_Call) RunAndReturn added in v1.1.0

func (_c *Console_WarnLn_Call) RunAndReturn(run func(string)) *Console_WarnLn_Call

type Console_Warn_Call added in v1.1.0

type Console_Warn_Call struct {
	*mock.Call
}

Console_Warn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Warn'

func (*Console_Warn_Call) Return added in v1.1.0

func (_c *Console_Warn_Call) Return() *Console_Warn_Call

func (*Console_Warn_Call) Run added in v1.1.0

func (_c *Console_Warn_Call) Run(run func(message string)) *Console_Warn_Call

func (*Console_Warn_Call) RunAndReturn added in v1.1.0

func (_c *Console_Warn_Call) RunAndReturn(run func(string)) *Console_Warn_Call

type Console_Warnf_Call added in v1.1.0

type Console_Warnf_Call struct {
	*mock.Call
}

Console_Warnf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Warnf'

func (*Console_Warnf_Call) Return added in v1.1.0

func (_c *Console_Warnf_Call) Return() *Console_Warnf_Call

func (*Console_Warnf_Call) Run added in v1.1.0

func (_c *Console_Warnf_Call) Run(run func(message string, a ...any)) *Console_Warnf_Call

func (*Console_Warnf_Call) RunAndReturn added in v1.1.0

func (_c *Console_Warnf_Call) RunAndReturn(run func(string, ...any)) *Console_Warnf_Call

type File

type File struct {
	mock.Mock
}

File is an autogenerated mock type for the File type

func NewFile

func NewFile(t interface {
	mock.TestingT
	Cleanup(func())
}) *File

NewFile creates a new instance of File. 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 (*File) EXPECT

func (_m *File) EXPECT() *File_Expecter

func (*File) Exists

func (_m *File) Exists(fileName string) (bool, error)

Exists provides a mock function with given fields: fileName

func (*File) Open

func (_m *File) Open(filename string) (io.ReadCloser, error)

Open provides a mock function with given fields: filename

func (*File) ReadAll

func (_m *File) ReadAll(filename string) ([]byte, error)

ReadAll provides a mock function with given fields: filename

type File_Exists_Call

type File_Exists_Call struct {
	*mock.Call
}

File_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'

func (*File_Exists_Call) Return

func (_c *File_Exists_Call) Return(_a0 bool, _a1 error) *File_Exists_Call

func (*File_Exists_Call) Run

func (_c *File_Exists_Call) Run(run func(fileName string)) *File_Exists_Call

func (*File_Exists_Call) RunAndReturn

func (_c *File_Exists_Call) RunAndReturn(run func(string) (bool, error)) *File_Exists_Call

type File_Expecter

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

func (*File_Expecter) Exists

func (_e *File_Expecter) Exists(fileName interface{}) *File_Exists_Call

Exists is a helper method to define mock.On call

  • fileName string

func (*File_Expecter) Open

func (_e *File_Expecter) Open(filename interface{}) *File_Open_Call

Open is a helper method to define mock.On call

  • filename string

func (*File_Expecter) ReadAll

func (_e *File_Expecter) ReadAll(filename interface{}) *File_ReadAll_Call

ReadAll is a helper method to define mock.On call

  • filename string

type File_Open_Call

type File_Open_Call struct {
	*mock.Call
}

File_Open_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Open'

func (*File_Open_Call) Return

func (_c *File_Open_Call) Return(_a0 io.ReadCloser, _a1 error) *File_Open_Call

func (*File_Open_Call) Run

func (_c *File_Open_Call) Run(run func(filename string)) *File_Open_Call

func (*File_Open_Call) RunAndReturn

func (_c *File_Open_Call) RunAndReturn(run func(string) (io.ReadCloser, error)) *File_Open_Call

type File_ReadAll_Call

type File_ReadAll_Call struct {
	*mock.Call
}

File_ReadAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadAll'

func (*File_ReadAll_Call) Return

func (_c *File_ReadAll_Call) Return(_a0 []byte, _a1 error) *File_ReadAll_Call

func (*File_ReadAll_Call) Run

func (_c *File_ReadAll_Call) Run(run func(filename string)) *File_ReadAll_Call

func (*File_ReadAll_Call) RunAndReturn

func (_c *File_ReadAll_Call) RunAndReturn(run func(string) ([]byte, error)) *File_ReadAll_Call

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) CreateMigrationHistoryTable

func (_m *Repository) CreateMigrationHistoryTable(ctx context.Context) error

CreateMigrationHistoryTable provides a mock function with given fields: ctx

func (*Repository) DropMigrationHistoryTable

func (_m *Repository) DropMigrationHistoryTable(ctx context.Context) error

DropMigrationHistoryTable provides a mock function with given fields: ctx

func (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) ExecQuery

func (_m *Repository) ExecQuery(ctx context.Context, query string, args ...any) error

ExecQuery provides a mock function with given fields: ctx, query, args

func (*Repository) ExecQueryTransaction

func (_m *Repository) ExecQueryTransaction(ctx context.Context, fnTx func(context.Context) error) error

ExecQueryTransaction provides a mock function with given fields: ctx, fnTx

func (*Repository) ExistsMigration added in v0.4.0

func (_m *Repository) ExistsMigration(ctx context.Context, version string) (bool, error)

ExistsMigration provides a mock function with given fields: ctx, version

func (*Repository) HasMigrationHistoryTable

func (_m *Repository) HasMigrationHistoryTable(ctx context.Context) (bool, error)

HasMigrationHistoryTable provides a mock function with given fields: ctx

func (*Repository) InsertMigration

func (_m *Repository) InsertMigration(ctx context.Context, version string) error

InsertMigration provides a mock function with given fields: ctx, version

func (*Repository) Migrations

func (_m *Repository) Migrations(ctx context.Context, limit int) (entity.Migrations, error)

Migrations provides a mock function with given fields: ctx, limit

func (*Repository) MigrationsCount

func (_m *Repository) MigrationsCount(ctx context.Context) (int, error)

MigrationsCount provides a mock function with given fields: ctx

func (*Repository) RemoveMigration

func (_m *Repository) RemoveMigration(ctx context.Context, version string) error

RemoveMigration provides a mock function with given fields: ctx, version

func (*Repository) TableNameWithSchema

func (_m *Repository) TableNameWithSchema() string

TableNameWithSchema provides a mock function with no fields

type Repository_CreateMigrationHistoryTable_Call

type Repository_CreateMigrationHistoryTable_Call struct {
	*mock.Call
}

Repository_CreateMigrationHistoryTable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateMigrationHistoryTable'

func (*Repository_CreateMigrationHistoryTable_Call) Return

func (*Repository_CreateMigrationHistoryTable_Call) Run

func (*Repository_CreateMigrationHistoryTable_Call) RunAndReturn

type Repository_DropMigrationHistoryTable_Call

type Repository_DropMigrationHistoryTable_Call struct {
	*mock.Call
}

Repository_DropMigrationHistoryTable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropMigrationHistoryTable'

func (*Repository_DropMigrationHistoryTable_Call) Return

func (*Repository_DropMigrationHistoryTable_Call) Run

func (*Repository_DropMigrationHistoryTable_Call) RunAndReturn

type Repository_ExecQueryTransaction_Call

type Repository_ExecQueryTransaction_Call struct {
	*mock.Call
}

Repository_ExecQueryTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecQueryTransaction'

func (*Repository_ExecQueryTransaction_Call) Return

func (*Repository_ExecQueryTransaction_Call) Run

func (*Repository_ExecQueryTransaction_Call) RunAndReturn

type Repository_ExecQuery_Call

type Repository_ExecQuery_Call struct {
	*mock.Call
}

Repository_ExecQuery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecQuery'

func (*Repository_ExecQuery_Call) Return

func (*Repository_ExecQuery_Call) Run

func (_c *Repository_ExecQuery_Call) Run(run func(ctx context.Context, query string, args ...any)) *Repository_ExecQuery_Call

func (*Repository_ExecQuery_Call) RunAndReturn

type Repository_ExistsMigration_Call added in v0.4.0

type Repository_ExistsMigration_Call struct {
	*mock.Call
}

Repository_ExistsMigration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExistsMigration'

func (*Repository_ExistsMigration_Call) Return added in v0.4.0

func (*Repository_ExistsMigration_Call) Run added in v0.4.0

func (*Repository_ExistsMigration_Call) RunAndReturn added in v0.4.0

type Repository_Expecter

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

func (*Repository_Expecter) CreateMigrationHistoryTable

func (_e *Repository_Expecter) CreateMigrationHistoryTable(ctx interface{}) *Repository_CreateMigrationHistoryTable_Call

CreateMigrationHistoryTable is a helper method to define mock.On call

  • ctx context.Context

func (*Repository_Expecter) DropMigrationHistoryTable

func (_e *Repository_Expecter) DropMigrationHistoryTable(ctx interface{}) *Repository_DropMigrationHistoryTable_Call

DropMigrationHistoryTable is a helper method to define mock.On call

  • ctx context.Context

func (*Repository_Expecter) ExecQuery

func (_e *Repository_Expecter) ExecQuery(ctx interface{}, query interface{}, args ...interface{}) *Repository_ExecQuery_Call

ExecQuery is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...any

func (*Repository_Expecter) ExecQueryTransaction

func (_e *Repository_Expecter) ExecQueryTransaction(ctx interface{}, fnTx interface{}) *Repository_ExecQueryTransaction_Call

ExecQueryTransaction is a helper method to define mock.On call

  • ctx context.Context
  • fnTx func(context.Context) error

func (*Repository_Expecter) ExistsMigration added in v0.4.0

func (_e *Repository_Expecter) ExistsMigration(ctx interface{}, version interface{}) *Repository_ExistsMigration_Call

ExistsMigration is a helper method to define mock.On call

  • ctx context.Context
  • version string

func (*Repository_Expecter) HasMigrationHistoryTable

func (_e *Repository_Expecter) HasMigrationHistoryTable(ctx interface{}) *Repository_HasMigrationHistoryTable_Call

HasMigrationHistoryTable is a helper method to define mock.On call

  • ctx context.Context

func (*Repository_Expecter) InsertMigration

func (_e *Repository_Expecter) InsertMigration(ctx interface{}, version interface{}) *Repository_InsertMigration_Call

InsertMigration is a helper method to define mock.On call

  • ctx context.Context
  • version string

func (*Repository_Expecter) Migrations

func (_e *Repository_Expecter) Migrations(ctx interface{}, limit interface{}) *Repository_Migrations_Call

Migrations is a helper method to define mock.On call

  • ctx context.Context
  • limit int

func (*Repository_Expecter) MigrationsCount

func (_e *Repository_Expecter) MigrationsCount(ctx interface{}) *Repository_MigrationsCount_Call

MigrationsCount is a helper method to define mock.On call

  • ctx context.Context

func (*Repository_Expecter) RemoveMigration

func (_e *Repository_Expecter) RemoveMigration(ctx interface{}, version interface{}) *Repository_RemoveMigration_Call

RemoveMigration is a helper method to define mock.On call

  • ctx context.Context
  • version string

func (*Repository_Expecter) TableNameWithSchema

func (_e *Repository_Expecter) TableNameWithSchema() *Repository_TableNameWithSchema_Call

TableNameWithSchema is a helper method to define mock.On call

type Repository_HasMigrationHistoryTable_Call

type Repository_HasMigrationHistoryTable_Call struct {
	*mock.Call
}

Repository_HasMigrationHistoryTable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasMigrationHistoryTable'

func (*Repository_HasMigrationHistoryTable_Call) Return

func (*Repository_HasMigrationHistoryTable_Call) Run

func (*Repository_HasMigrationHistoryTable_Call) RunAndReturn

type Repository_InsertMigration_Call

type Repository_InsertMigration_Call struct {
	*mock.Call
}

Repository_InsertMigration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertMigration'

func (*Repository_InsertMigration_Call) Return

func (*Repository_InsertMigration_Call) Run

func (*Repository_InsertMigration_Call) RunAndReturn

type Repository_MigrationsCount_Call

type Repository_MigrationsCount_Call struct {
	*mock.Call
}

Repository_MigrationsCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MigrationsCount'

func (*Repository_MigrationsCount_Call) Return

func (*Repository_MigrationsCount_Call) Run

func (*Repository_MigrationsCount_Call) RunAndReturn

type Repository_Migrations_Call

type Repository_Migrations_Call struct {
	*mock.Call
}

Repository_Migrations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Migrations'

func (*Repository_Migrations_Call) Return

func (*Repository_Migrations_Call) Run

func (*Repository_Migrations_Call) RunAndReturn

type Repository_RemoveMigration_Call

type Repository_RemoveMigration_Call struct {
	*mock.Call
}

Repository_RemoveMigration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveMigration'

func (*Repository_RemoveMigration_Call) Return

func (*Repository_RemoveMigration_Call) Run

func (*Repository_RemoveMigration_Call) RunAndReturn

type Repository_TableNameWithSchema_Call

type Repository_TableNameWithSchema_Call struct {
	*mock.Call
}

Repository_TableNameWithSchema_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TableNameWithSchema'

func (*Repository_TableNameWithSchema_Call) Return

func (*Repository_TableNameWithSchema_Call) Run

func (*Repository_TableNameWithSchema_Call) RunAndReturn

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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