mocks

package
v0.9.16 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISettingService

type ISettingService struct {
	mock.Mock
}

ISettingService is an autogenerated mock type for the ISettingService type

func NewISettingService

func NewISettingService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ISettingService

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

func (*ISettingService) GetAvailableModelSettings

func (_m *ISettingService) GetAvailableModelSettings(ctx context.Context, model setting.IModelSetting) ([]setting.Dto, error)

GetAvailableModelSettings provides a mock function with given fields: ctx, model

func (*ISettingService) GetMailerSettings

func (_m *ISettingService) GetMailerSettings(ctx context.Context) (*settings.MailerSettings, error)

GetMailerSettings provides a mock function with given fields: ctx

func (*ISettingService) GetModelSetting

func (_m *ISettingService) GetModelSetting(ctx context.Context, name string, model setting.IModelSetting) (*models.Setting, error)

GetModelSetting provides a mock function with given fields: ctx, name, model

func (*ISettingService) GetRootSetting

func (_m *ISettingService) GetRootSetting(ctx context.Context, name string) (*models.Setting, error)

GetRootSetting provides a mock function with given fields: ctx, name

func (*ISettingService) GetRootSettings

func (_m *ISettingService) GetRootSettings(ctx context.Context) ([]*models.Setting, error)

GetRootSettings provides a mock function with given fields: ctx

func (*ISettingService) GetRootSettingsByNames

func (_m *ISettingService) GetRootSettingsByNames(ctx context.Context, names []string) ([]*models.Setting, error)

GetRootSettingsByNames provides a mock function with given fields: ctx, names

func (*ISettingService) GetRootSettingsList

func (_m *ISettingService) GetRootSettingsList(ctx context.Context) ([]setting.Dto, error)

GetRootSettingsList provides a mock function with given fields: ctx

func (*ISettingService) Is2faRequired

func (_m *ISettingService) Is2faRequired(name string) bool

Is2faRequired provides a mock function with given fields: name

func (*ISettingService) RemoveRootSetting

func (_m *ISettingService) RemoveRootSetting(ctx context.Context, name string) error

RemoveRootSetting provides a mock function with given fields: ctx, name

func (*ISettingService) RemoveSetting

func (_m *ISettingService) RemoveSetting(ctx context.Context, user *models.User, name string) error

RemoveSetting provides a mock function with given fields: ctx, user, name

func (*ISettingService) SetModelSetting

func (_m *ISettingService) SetModelSetting(ctx context.Context, dto setting.UpdateDTO, option ...repos.Option) error

SetModelSetting provides a mock function with given fields: ctx, dto, option

func (*ISettingService) SetRootSetting

func (_m *ISettingService) SetRootSetting(ctx context.Context, name string, value string) (*models.Setting, error)

SetRootSetting provides a mock function with given fields: ctx, name, value

type ISettingService_Expecter

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

func (*ISettingService_Expecter) GetAvailableModelSettings

func (_e *ISettingService_Expecter) GetAvailableModelSettings(ctx interface{}, model interface{}) *ISettingService_GetAvailableModelSettings_Call

GetAvailableModelSettings is a helper method to define mock.On call

  • ctx context.Context
  • model setting.IModelSetting

func (*ISettingService_Expecter) GetMailerSettings

func (_e *ISettingService_Expecter) GetMailerSettings(ctx interface{}) *ISettingService_GetMailerSettings_Call

GetMailerSettings is a helper method to define mock.On call

  • ctx context.Context

func (*ISettingService_Expecter) GetModelSetting

func (_e *ISettingService_Expecter) GetModelSetting(ctx interface{}, name interface{}, model interface{}) *ISettingService_GetModelSetting_Call

GetModelSetting is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • model setting.IModelSetting

func (*ISettingService_Expecter) GetRootSetting

func (_e *ISettingService_Expecter) GetRootSetting(ctx interface{}, name interface{}) *ISettingService_GetRootSetting_Call

GetRootSetting is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*ISettingService_Expecter) GetRootSettings

func (_e *ISettingService_Expecter) GetRootSettings(ctx interface{}) *ISettingService_GetRootSettings_Call

GetRootSettings is a helper method to define mock.On call

  • ctx context.Context

func (*ISettingService_Expecter) GetRootSettingsByNames

func (_e *ISettingService_Expecter) GetRootSettingsByNames(ctx interface{}, names interface{}) *ISettingService_GetRootSettingsByNames_Call

GetRootSettingsByNames is a helper method to define mock.On call

  • ctx context.Context
  • names []string

func (*ISettingService_Expecter) GetRootSettingsList

func (_e *ISettingService_Expecter) GetRootSettingsList(ctx interface{}) *ISettingService_GetRootSettingsList_Call

GetRootSettingsList is a helper method to define mock.On call

  • ctx context.Context

func (*ISettingService_Expecter) Is2faRequired

func (_e *ISettingService_Expecter) Is2faRequired(name interface{}) *ISettingService_Is2faRequired_Call

Is2faRequired is a helper method to define mock.On call

  • name string

func (*ISettingService_Expecter) RemoveRootSetting

func (_e *ISettingService_Expecter) RemoveRootSetting(ctx interface{}, name interface{}) *ISettingService_RemoveRootSetting_Call

RemoveRootSetting is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*ISettingService_Expecter) RemoveSetting

func (_e *ISettingService_Expecter) RemoveSetting(ctx interface{}, user interface{}, name interface{}) *ISettingService_RemoveSetting_Call

RemoveSetting is a helper method to define mock.On call

  • ctx context.Context
  • user *models.User
  • name string

func (*ISettingService_Expecter) SetModelSetting

func (_e *ISettingService_Expecter) SetModelSetting(ctx interface{}, dto interface{}, option ...interface{}) *ISettingService_SetModelSetting_Call

SetModelSetting is a helper method to define mock.On call

  • ctx context.Context
  • dto setting.UpdateDTO
  • option ...repos.Option

func (*ISettingService_Expecter) SetRootSetting

func (_e *ISettingService_Expecter) SetRootSetting(ctx interface{}, name interface{}, value interface{}) *ISettingService_SetRootSetting_Call

SetRootSetting is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • value string

type ISettingService_GetAvailableModelSettings_Call

type ISettingService_GetAvailableModelSettings_Call struct {
	*mock.Call
}

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

func (*ISettingService_GetAvailableModelSettings_Call) Return

func (*ISettingService_GetAvailableModelSettings_Call) Run

func (*ISettingService_GetAvailableModelSettings_Call) RunAndReturn

type ISettingService_GetMailerSettings_Call

type ISettingService_GetMailerSettings_Call struct {
	*mock.Call
}

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

func (*ISettingService_GetMailerSettings_Call) Return

func (*ISettingService_GetMailerSettings_Call) Run

func (*ISettingService_GetMailerSettings_Call) RunAndReturn

type ISettingService_GetModelSetting_Call

type ISettingService_GetModelSetting_Call struct {
	*mock.Call
}

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

func (*ISettingService_GetModelSetting_Call) Return

func (*ISettingService_GetModelSetting_Call) Run

func (*ISettingService_GetModelSetting_Call) RunAndReturn

type ISettingService_GetRootSetting_Call

type ISettingService_GetRootSetting_Call struct {
	*mock.Call
}

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

func (*ISettingService_GetRootSetting_Call) Return

func (*ISettingService_GetRootSetting_Call) Run

func (*ISettingService_GetRootSetting_Call) RunAndReturn

type ISettingService_GetRootSettingsByNames_Call

type ISettingService_GetRootSettingsByNames_Call struct {
	*mock.Call
}

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

func (*ISettingService_GetRootSettingsByNames_Call) Return

func (*ISettingService_GetRootSettingsByNames_Call) Run

func (*ISettingService_GetRootSettingsByNames_Call) RunAndReturn

type ISettingService_GetRootSettingsList_Call

type ISettingService_GetRootSettingsList_Call struct {
	*mock.Call
}

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

func (*ISettingService_GetRootSettingsList_Call) Return

func (*ISettingService_GetRootSettingsList_Call) Run

func (*ISettingService_GetRootSettingsList_Call) RunAndReturn

type ISettingService_GetRootSettings_Call

type ISettingService_GetRootSettings_Call struct {
	*mock.Call
}

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

func (*ISettingService_GetRootSettings_Call) Return

func (*ISettingService_GetRootSettings_Call) Run

func (*ISettingService_GetRootSettings_Call) RunAndReturn

type ISettingService_Is2faRequired_Call

type ISettingService_Is2faRequired_Call struct {
	*mock.Call
}

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

func (*ISettingService_Is2faRequired_Call) Return

func (*ISettingService_Is2faRequired_Call) Run

func (*ISettingService_Is2faRequired_Call) RunAndReturn

type ISettingService_RemoveRootSetting_Call

type ISettingService_RemoveRootSetting_Call struct {
	*mock.Call
}

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

func (*ISettingService_RemoveRootSetting_Call) Return

func (*ISettingService_RemoveRootSetting_Call) Run

func (*ISettingService_RemoveRootSetting_Call) RunAndReturn

type ISettingService_RemoveSetting_Call

type ISettingService_RemoveSetting_Call struct {
	*mock.Call
}

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

func (*ISettingService_RemoveSetting_Call) Return

func (*ISettingService_RemoveSetting_Call) Run

func (*ISettingService_RemoveSetting_Call) RunAndReturn

type ISettingService_SetModelSetting_Call

type ISettingService_SetModelSetting_Call struct {
	*mock.Call
}

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

func (*ISettingService_SetModelSetting_Call) Return

func (*ISettingService_SetModelSetting_Call) Run

func (*ISettingService_SetModelSetting_Call) RunAndReturn

type ISettingService_SetRootSetting_Call

type ISettingService_SetRootSetting_Call struct {
	*mock.Call
}

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

func (*ISettingService_SetRootSetting_Call) Return

func (*ISettingService_SetRootSetting_Call) Run

func (*ISettingService_SetRootSetting_Call) RunAndReturn

Jump to

Keyboard shortcuts

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