Documentation
¶
Index ¶
- type Console
- func (_m *Console) Confirm(s string) bool
- func (_m *Console) EXPECT() *Console_Expecter
- func (_m *Console) Error(message string)
- func (_m *Console) ErrorLn(message string)
- func (_m *Console) Errorf(message string, a ...any)
- func (_m *Console) Fatal(err error)
- func (_m *Console) Info(message string)
- func (_m *Console) InfoLn(message string)
- func (_m *Console) Infof(message string, a ...any)
- func (_m *Console) NumberPlural(count int, one string, many string) string
- func (_m *Console) Success(message string)
- func (_m *Console) SuccessLn(message string)
- func (_m *Console) Successf(message string, a ...any)
- func (_m *Console) Warn(message string)
- func (_m *Console) WarnLn(message string)
- func (_m *Console) Warnf(message string, a ...any)
- type Console_Confirm_Call
- type Console_ErrorLn_Call
- type Console_Error_Call
- type Console_Errorf_Call
- type Console_Expecter
- func (_e *Console_Expecter) Confirm(s interface{}) *Console_Confirm_Call
- func (_e *Console_Expecter) Error(message interface{}) *Console_Error_Call
- func (_e *Console_Expecter) ErrorLn(message interface{}) *Console_ErrorLn_Call
- func (_e *Console_Expecter) Errorf(message interface{}, a ...interface{}) *Console_Errorf_Call
- func (_e *Console_Expecter) Fatal(err interface{}) *Console_Fatal_Call
- func (_e *Console_Expecter) Info(message interface{}) *Console_Info_Call
- func (_e *Console_Expecter) InfoLn(message interface{}) *Console_InfoLn_Call
- func (_e *Console_Expecter) Infof(message interface{}, a ...interface{}) *Console_Infof_Call
- func (_e *Console_Expecter) NumberPlural(count interface{}, one interface{}, many interface{}) *Console_NumberPlural_Call
- func (_e *Console_Expecter) Success(message interface{}) *Console_Success_Call
- func (_e *Console_Expecter) SuccessLn(message interface{}) *Console_SuccessLn_Call
- func (_e *Console_Expecter) Successf(message interface{}, a ...interface{}) *Console_Successf_Call
- func (_e *Console_Expecter) Warn(message interface{}) *Console_Warn_Call
- func (_e *Console_Expecter) WarnLn(message interface{}) *Console_WarnLn_Call
- func (_e *Console_Expecter) Warnf(message interface{}, a ...interface{}) *Console_Warnf_Call
- type Console_Fatal_Call
- type Console_InfoLn_Call
- type Console_Info_Call
- type Console_Infof_Call
- type Console_NumberPlural_Call
- func (_c *Console_NumberPlural_Call) Return(_a0 string) *Console_NumberPlural_Call
- func (_c *Console_NumberPlural_Call) Run(run func(count int, one string, many string)) *Console_NumberPlural_Call
- func (_c *Console_NumberPlural_Call) RunAndReturn(run func(int, string, string) string) *Console_NumberPlural_Call
- type Console_SuccessLn_Call
- type Console_Success_Call
- type Console_Successf_Call
- type Console_WarnLn_Call
- type Console_Warn_Call
- type Console_Warnf_Call
- type File
- type File_Exists_Call
- type File_Expecter
- type File_Open_Call
- type File_ReadAll_Call
- type Repository
- func (_m *Repository) CreateMigrationHistoryTable(ctx context.Context) error
- func (_m *Repository) DropMigrationHistoryTable(ctx context.Context) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) ExecQuery(ctx context.Context, query string, args ...any) error
- func (_m *Repository) ExecQueryTransaction(ctx context.Context, fnTx func(context.Context) error) error
- func (_m *Repository) ExistsMigration(ctx context.Context, version string) (bool, error)
- func (_m *Repository) HasMigrationHistoryTable(ctx context.Context) (bool, error)
- func (_m *Repository) InsertMigration(ctx context.Context, version string) error
- func (_m *Repository) Migrations(ctx context.Context, limit int) (entity.Migrations, error)
- func (_m *Repository) MigrationsCount(ctx context.Context) (int, error)
- func (_m *Repository) RemoveMigration(ctx context.Context, version string) error
- func (_m *Repository) TableNameWithSchema() string
- type Repository_CreateMigrationHistoryTable_Call
- func (_c *Repository_CreateMigrationHistoryTable_Call) Return(_a0 error) *Repository_CreateMigrationHistoryTable_Call
- func (_c *Repository_CreateMigrationHistoryTable_Call) Run(run func(ctx context.Context)) *Repository_CreateMigrationHistoryTable_Call
- func (_c *Repository_CreateMigrationHistoryTable_Call) RunAndReturn(run func(context.Context) error) *Repository_CreateMigrationHistoryTable_Call
- type Repository_DropMigrationHistoryTable_Call
- func (_c *Repository_DropMigrationHistoryTable_Call) Return(_a0 error) *Repository_DropMigrationHistoryTable_Call
- func (_c *Repository_DropMigrationHistoryTable_Call) Run(run func(ctx context.Context)) *Repository_DropMigrationHistoryTable_Call
- func (_c *Repository_DropMigrationHistoryTable_Call) RunAndReturn(run func(context.Context) error) *Repository_DropMigrationHistoryTable_Call
- type Repository_ExecQueryTransaction_Call
- func (_c *Repository_ExecQueryTransaction_Call) Return(_a0 error) *Repository_ExecQueryTransaction_Call
- func (_c *Repository_ExecQueryTransaction_Call) Run(run func(ctx context.Context, fnTx func(context.Context) error)) *Repository_ExecQueryTransaction_Call
- func (_c *Repository_ExecQueryTransaction_Call) RunAndReturn(run func(context.Context, func(context.Context) error) error) *Repository_ExecQueryTransaction_Call
- type Repository_ExecQuery_Call
- func (_c *Repository_ExecQuery_Call) Return(_a0 error) *Repository_ExecQuery_Call
- func (_c *Repository_ExecQuery_Call) Run(run func(ctx context.Context, query string, args ...any)) *Repository_ExecQuery_Call
- func (_c *Repository_ExecQuery_Call) RunAndReturn(run func(context.Context, string, ...any) error) *Repository_ExecQuery_Call
- type Repository_ExistsMigration_Call
- func (_c *Repository_ExistsMigration_Call) Return(_a0 bool, _a1 error) *Repository_ExistsMigration_Call
- func (_c *Repository_ExistsMigration_Call) Run(run func(ctx context.Context, version string)) *Repository_ExistsMigration_Call
- func (_c *Repository_ExistsMigration_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *Repository_ExistsMigration_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) CreateMigrationHistoryTable(ctx interface{}) *Repository_CreateMigrationHistoryTable_Call
- func (_e *Repository_Expecter) DropMigrationHistoryTable(ctx interface{}) *Repository_DropMigrationHistoryTable_Call
- func (_e *Repository_Expecter) ExecQuery(ctx interface{}, query interface{}, args ...interface{}) *Repository_ExecQuery_Call
- func (_e *Repository_Expecter) ExecQueryTransaction(ctx interface{}, fnTx interface{}) *Repository_ExecQueryTransaction_Call
- func (_e *Repository_Expecter) ExistsMigration(ctx interface{}, version interface{}) *Repository_ExistsMigration_Call
- func (_e *Repository_Expecter) HasMigrationHistoryTable(ctx interface{}) *Repository_HasMigrationHistoryTable_Call
- func (_e *Repository_Expecter) InsertMigration(ctx interface{}, version interface{}) *Repository_InsertMigration_Call
- func (_e *Repository_Expecter) Migrations(ctx interface{}, limit interface{}) *Repository_Migrations_Call
- func (_e *Repository_Expecter) MigrationsCount(ctx interface{}) *Repository_MigrationsCount_Call
- func (_e *Repository_Expecter) RemoveMigration(ctx interface{}, version interface{}) *Repository_RemoveMigration_Call
- func (_e *Repository_Expecter) TableNameWithSchema() *Repository_TableNameWithSchema_Call
- type Repository_HasMigrationHistoryTable_Call
- func (_c *Repository_HasMigrationHistoryTable_Call) Return(exists bool, err error) *Repository_HasMigrationHistoryTable_Call
- func (_c *Repository_HasMigrationHistoryTable_Call) Run(run func(ctx context.Context)) *Repository_HasMigrationHistoryTable_Call
- func (_c *Repository_HasMigrationHistoryTable_Call) RunAndReturn(run func(context.Context) (bool, error)) *Repository_HasMigrationHistoryTable_Call
- type Repository_InsertMigration_Call
- func (_c *Repository_InsertMigration_Call) Return(_a0 error) *Repository_InsertMigration_Call
- func (_c *Repository_InsertMigration_Call) Run(run func(ctx context.Context, version string)) *Repository_InsertMigration_Call
- func (_c *Repository_InsertMigration_Call) RunAndReturn(run func(context.Context, string) error) *Repository_InsertMigration_Call
- type Repository_MigrationsCount_Call
- func (_c *Repository_MigrationsCount_Call) Return(_a0 int, _a1 error) *Repository_MigrationsCount_Call
- func (_c *Repository_MigrationsCount_Call) Run(run func(ctx context.Context)) *Repository_MigrationsCount_Call
- func (_c *Repository_MigrationsCount_Call) RunAndReturn(run func(context.Context) (int, error)) *Repository_MigrationsCount_Call
- type Repository_Migrations_Call
- func (_c *Repository_Migrations_Call) Return(_a0 entity.Migrations, _a1 error) *Repository_Migrations_Call
- func (_c *Repository_Migrations_Call) Run(run func(ctx context.Context, limit int)) *Repository_Migrations_Call
- func (_c *Repository_Migrations_Call) RunAndReturn(run func(context.Context, int) (entity.Migrations, error)) *Repository_Migrations_Call
- type Repository_RemoveMigration_Call
- func (_c *Repository_RemoveMigration_Call) Return(_a0 error) *Repository_RemoveMigration_Call
- func (_c *Repository_RemoveMigration_Call) Run(run func(ctx context.Context, version string)) *Repository_RemoveMigration_Call
- func (_c *Repository_RemoveMigration_Call) RunAndReturn(run func(context.Context, string) error) *Repository_RemoveMigration_Call
- type Repository_TableNameWithSchema_Call
- func (_c *Repository_TableNameWithSchema_Call) Return(_a0 string) *Repository_TableNameWithSchema_Call
- func (_c *Repository_TableNameWithSchema_Call) Run(run func()) *Repository_TableNameWithSchema_Call
- func (_c *Repository_TableNameWithSchema_Call) RunAndReturn(run func() string) *Repository_TableNameWithSchema_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Console ¶ added in v1.1.0
Console is an autogenerated mock type for the Console type
func NewConsole ¶ added in v1.1.0
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) EXPECT ¶ added in v1.1.0
func (_m *Console) EXPECT() *Console_Expecter
func (*Console) ErrorLn ¶ added in v1.1.0
ErrorLn provides a mock function with given fields: message
func (*Console) Errorf ¶ added in v1.1.0
Errorf provides a mock function with given fields: message, a
func (*Console) Infof ¶ added in v1.1.0
Infof provides a mock function with given fields: message, a
func (*Console) NumberPlural ¶ added in v1.1.0
NumberPlural provides a mock function with given fields: count, one, many
func (*Console) Success ¶ added in v1.1.0
Success provides a mock function with given fields: message
func (*Console) SuccessLn ¶ added in v1.1.0
SuccessLn provides a mock function with given fields: message
func (*Console) Successf ¶ added in v1.1.0
Successf provides a mock function with given fields: message, a
type Console_Confirm_Call ¶ added in v1.1.0
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 (_c *Console_Confirm_Call) Return(_a0 bool) *Console_Confirm_Call
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
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 (_c *Console_ErrorLn_Call) Return() *Console_ErrorLn_Call
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
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
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 (_c *Console_Errorf_Call) Return() *Console_Errorf_Call
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
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
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 (_c *Console_InfoLn_Call) Return() *Console_InfoLn_Call
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
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
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
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 (_c *Console_NumberPlural_Call) Return(_a0 string) *Console_NumberPlural_Call
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
func (_c *Console_NumberPlural_Call) RunAndReturn(run func(int, string, string) string) *Console_NumberPlural_Call
type Console_SuccessLn_Call ¶ added in v1.1.0
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 (_c *Console_SuccessLn_Call) Return() *Console_SuccessLn_Call
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
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 (_c *Console_Success_Call) Return() *Console_Success_Call
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
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 (_c *Console_Successf_Call) Return() *Console_Successf_Call
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
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 (_c *Console_WarnLn_Call) Return() *Console_WarnLn_Call
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
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
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 ¶
File is an autogenerated mock type for the File type
func NewFile ¶
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
type File_Exists_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 ¶
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 ¶
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 ¶
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 ¶
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
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 ¶
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 (_c *Repository_CreateMigrationHistoryTable_Call) Return(_a0 error) *Repository_CreateMigrationHistoryTable_Call
func (*Repository_CreateMigrationHistoryTable_Call) Run ¶
func (_c *Repository_CreateMigrationHistoryTable_Call) Run(run func(ctx context.Context)) *Repository_CreateMigrationHistoryTable_Call
func (*Repository_CreateMigrationHistoryTable_Call) RunAndReturn ¶
func (_c *Repository_CreateMigrationHistoryTable_Call) RunAndReturn(run func(context.Context) error) *Repository_CreateMigrationHistoryTable_Call
type Repository_DropMigrationHistoryTable_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 (_c *Repository_DropMigrationHistoryTable_Call) Return(_a0 error) *Repository_DropMigrationHistoryTable_Call
func (*Repository_DropMigrationHistoryTable_Call) Run ¶
func (_c *Repository_DropMigrationHistoryTable_Call) Run(run func(ctx context.Context)) *Repository_DropMigrationHistoryTable_Call
func (*Repository_DropMigrationHistoryTable_Call) RunAndReturn ¶
func (_c *Repository_DropMigrationHistoryTable_Call) RunAndReturn(run func(context.Context) error) *Repository_DropMigrationHistoryTable_Call
type Repository_ExecQueryTransaction_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 (_c *Repository_ExecQueryTransaction_Call) Return(_a0 error) *Repository_ExecQueryTransaction_Call
func (*Repository_ExecQueryTransaction_Call) Run ¶
func (_c *Repository_ExecQueryTransaction_Call) Run(run func(ctx context.Context, fnTx func(context.Context) error)) *Repository_ExecQueryTransaction_Call
func (*Repository_ExecQueryTransaction_Call) RunAndReturn ¶
func (_c *Repository_ExecQueryTransaction_Call) RunAndReturn(run func(context.Context, func(context.Context) error) error) *Repository_ExecQueryTransaction_Call
type Repository_ExecQuery_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 (_c *Repository_ExecQuery_Call) Return(_a0 error) *Repository_ExecQuery_Call
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 ¶
func (_c *Repository_ExecQuery_Call) RunAndReturn(run func(context.Context, string, ...any) error) *Repository_ExecQuery_Call
type Repository_ExistsMigration_Call ¶ added in v0.4.0
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 (_c *Repository_ExistsMigration_Call) Return(_a0 bool, _a1 error) *Repository_ExistsMigration_Call
func (*Repository_ExistsMigration_Call) Run ¶ added in v0.4.0
func (_c *Repository_ExistsMigration_Call) Run(run func(ctx context.Context, version string)) *Repository_ExistsMigration_Call
func (*Repository_ExistsMigration_Call) RunAndReturn ¶ added in v0.4.0
func (_c *Repository_ExistsMigration_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *Repository_ExistsMigration_Call
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 ¶
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 (_c *Repository_HasMigrationHistoryTable_Call) Return(exists bool, err error) *Repository_HasMigrationHistoryTable_Call
func (*Repository_HasMigrationHistoryTable_Call) Run ¶
func (_c *Repository_HasMigrationHistoryTable_Call) Run(run func(ctx context.Context)) *Repository_HasMigrationHistoryTable_Call
func (*Repository_HasMigrationHistoryTable_Call) RunAndReturn ¶
func (_c *Repository_HasMigrationHistoryTable_Call) RunAndReturn(run func(context.Context) (bool, error)) *Repository_HasMigrationHistoryTable_Call
type Repository_InsertMigration_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 (_c *Repository_InsertMigration_Call) Return(_a0 error) *Repository_InsertMigration_Call
func (*Repository_InsertMigration_Call) Run ¶
func (_c *Repository_InsertMigration_Call) Run(run func(ctx context.Context, version string)) *Repository_InsertMigration_Call
func (*Repository_InsertMigration_Call) RunAndReturn ¶
func (_c *Repository_InsertMigration_Call) RunAndReturn(run func(context.Context, string) error) *Repository_InsertMigration_Call
type Repository_MigrationsCount_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 (_c *Repository_MigrationsCount_Call) Return(_a0 int, _a1 error) *Repository_MigrationsCount_Call
func (*Repository_MigrationsCount_Call) Run ¶
func (_c *Repository_MigrationsCount_Call) Run(run func(ctx context.Context)) *Repository_MigrationsCount_Call
func (*Repository_MigrationsCount_Call) RunAndReturn ¶
func (_c *Repository_MigrationsCount_Call) RunAndReturn(run func(context.Context) (int, error)) *Repository_MigrationsCount_Call
type Repository_Migrations_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 (_c *Repository_Migrations_Call) Return(_a0 entity.Migrations, _a1 error) *Repository_Migrations_Call
func (*Repository_Migrations_Call) Run ¶
func (_c *Repository_Migrations_Call) Run(run func(ctx context.Context, limit int)) *Repository_Migrations_Call
func (*Repository_Migrations_Call) RunAndReturn ¶
func (_c *Repository_Migrations_Call) RunAndReturn(run func(context.Context, int) (entity.Migrations, error)) *Repository_Migrations_Call
type Repository_RemoveMigration_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 (_c *Repository_RemoveMigration_Call) Return(_a0 error) *Repository_RemoveMigration_Call
func (*Repository_RemoveMigration_Call) Run ¶
func (_c *Repository_RemoveMigration_Call) Run(run func(ctx context.Context, version string)) *Repository_RemoveMigration_Call
func (*Repository_RemoveMigration_Call) RunAndReturn ¶
func (_c *Repository_RemoveMigration_Call) RunAndReturn(run func(context.Context, string) error) *Repository_RemoveMigration_Call
type Repository_TableNameWithSchema_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 (_c *Repository_TableNameWithSchema_Call) Return(_a0 string) *Repository_TableNameWithSchema_Call
func (*Repository_TableNameWithSchema_Call) Run ¶
func (_c *Repository_TableNameWithSchema_Call) Run(run func()) *Repository_TableNameWithSchema_Call
func (*Repository_TableNameWithSchema_Call) RunAndReturn ¶
func (_c *Repository_TableNameWithSchema_Call) RunAndReturn(run func() string) *Repository_TableNameWithSchema_Call