mocks

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigResolver added in v0.5.0

type ConfigResolver struct {
	mock.Mock
}

ConfigResolver is an autogenerated mock type for the ConfigResolver type

func NewConfigResolver added in v0.5.0

func NewConfigResolver(t mockConstructorTestingTNewConfigResolver) *ConfigResolver

NewConfigResolver creates a new instance of ConfigResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConfigResolver) BuildData added in v0.5.0

func (_m *ConfigResolver) BuildData(ctx context.Context, configs map[string]interface{}) (map[string]interface{}, error)

BuildData provides a mock function with given fields: ctx, configs

func (*ConfigResolver) EXPECT added in v0.5.0

func (*ConfigResolver) PostHookDBTransformConfigs added in v0.5.0

func (_m *ConfigResolver) PostHookDBTransformConfigs(ctx context.Context, configs map[string]interface{}) (map[string]interface{}, error)

PostHookDBTransformConfigs provides a mock function with given fields: ctx, configs

func (*ConfigResolver) PreHookDBTransformConfigs added in v0.5.0

func (_m *ConfigResolver) PreHookDBTransformConfigs(ctx context.Context, configs map[string]interface{}) (map[string]interface{}, error)

PreHookDBTransformConfigs provides a mock function with given fields: ctx, configs

type ConfigResolver_BuildData_Call added in v0.5.0

type ConfigResolver_BuildData_Call struct {
	*mock.Call
}

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

func (*ConfigResolver_BuildData_Call) Return added in v0.5.0

func (_c *ConfigResolver_BuildData_Call) Return(_a0 map[string]interface{}, _a1 error) *ConfigResolver_BuildData_Call

func (*ConfigResolver_BuildData_Call) Run added in v0.5.0

func (_c *ConfigResolver_BuildData_Call) Run(run func(ctx context.Context, configs map[string]interface{})) *ConfigResolver_BuildData_Call

type ConfigResolver_Expecter added in v0.5.0

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

func (*ConfigResolver_Expecter) BuildData added in v0.5.0

func (_e *ConfigResolver_Expecter) BuildData(ctx interface{}, configs interface{}) *ConfigResolver_BuildData_Call

BuildData is a helper method to define mock.On call

  • ctx context.Context
  • configs map[string]interface{}

func (*ConfigResolver_Expecter) PostHookDBTransformConfigs added in v0.5.0

func (_e *ConfigResolver_Expecter) PostHookDBTransformConfigs(ctx interface{}, configs interface{}) *ConfigResolver_PostHookDBTransformConfigs_Call

PostHookDBTransformConfigs is a helper method to define mock.On call

  • ctx context.Context
  • configs map[string]interface{}

func (*ConfigResolver_Expecter) PreHookDBTransformConfigs added in v0.5.0

func (_e *ConfigResolver_Expecter) PreHookDBTransformConfigs(ctx interface{}, configs interface{}) *ConfigResolver_PreHookDBTransformConfigs_Call

PreHookDBTransformConfigs is a helper method to define mock.On call

  • ctx context.Context
  • configs map[string]interface{}

type ConfigResolver_PostHookDBTransformConfigs_Call added in v0.5.0

type ConfigResolver_PostHookDBTransformConfigs_Call struct {
	*mock.Call
}

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

func (*ConfigResolver_PostHookDBTransformConfigs_Call) Return added in v0.5.0

func (*ConfigResolver_PostHookDBTransformConfigs_Call) Run added in v0.5.0

type ConfigResolver_PreHookDBTransformConfigs_Call added in v0.5.0

type ConfigResolver_PreHookDBTransformConfigs_Call struct {
	*mock.Call
}

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

func (*ConfigResolver_PreHookDBTransformConfigs_Call) Return added in v0.5.0

func (*ConfigResolver_PreHookDBTransformConfigs_Call) Run added in v0.5.0

type Encryptor

type Encryptor struct {
	mock.Mock
}

Encryptor is an autogenerated mock type for the Encryptor type

func NewEncryptor

func NewEncryptor(t mockConstructorTestingTNewEncryptor) *Encryptor

NewEncryptor creates a new instance of Encryptor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Encryptor) Decrypt

func (_m *Encryptor) Decrypt(str string) (string, error)

Decrypt provides a mock function with given fields: str

func (*Encryptor) EXPECT

func (_m *Encryptor) EXPECT() *Encryptor_Expecter

func (*Encryptor) Encrypt

func (_m *Encryptor) Encrypt(str string) (string, error)

Encrypt provides a mock function with given fields: str

type Encryptor_Decrypt_Call

type Encryptor_Decrypt_Call struct {
	*mock.Call
}

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

func (*Encryptor_Decrypt_Call) Return

func (*Encryptor_Decrypt_Call) Run

func (_c *Encryptor_Decrypt_Call) Run(run func(str string)) *Encryptor_Decrypt_Call

type Encryptor_Encrypt_Call

type Encryptor_Encrypt_Call struct {
	*mock.Call
}

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

func (*Encryptor_Encrypt_Call) Return

func (*Encryptor_Encrypt_Call) Run

func (_c *Encryptor_Encrypt_Call) Run(run func(str string)) *Encryptor_Encrypt_Call

type Encryptor_Expecter

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

func (*Encryptor_Expecter) Decrypt

func (_e *Encryptor_Expecter) Decrypt(str interface{}) *Encryptor_Decrypt_Call

Decrypt is a helper method to define mock.On call

  • str string

func (*Encryptor_Expecter) Encrypt

func (_e *Encryptor_Expecter) Encrypt(str interface{}) *Encryptor_Encrypt_Call

Encrypt is a helper method to define mock.On call

  • str string

type ReceiverRepository

type ReceiverRepository struct {
	mock.Mock
}

ReceiverRepository is an autogenerated mock type for the Repository type

func NewReceiverRepository

func NewReceiverRepository(t mockConstructorTestingTNewReceiverRepository) *ReceiverRepository

NewReceiverRepository creates a new instance of ReceiverRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ReceiverRepository) Create

func (_m *ReceiverRepository) Create(_a0 context.Context, _a1 *receiver.Receiver) error

Create provides a mock function with given fields: _a0, _a1

func (*ReceiverRepository) Delete

func (_m *ReceiverRepository) Delete(_a0 context.Context, _a1 uint64) error

Delete provides a mock function with given fields: _a0, _a1

func (*ReceiverRepository) EXPECT

func (*ReceiverRepository) Get

Get provides a mock function with given fields: _a0, _a1

func (*ReceiverRepository) List

List provides a mock function with given fields: _a0, _a1

func (*ReceiverRepository) Update

func (_m *ReceiverRepository) Update(_a0 context.Context, _a1 *receiver.Receiver) error

Update provides a mock function with given fields: _a0, _a1

type ReceiverRepository_Create_Call

type ReceiverRepository_Create_Call struct {
	*mock.Call
}

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

func (*ReceiverRepository_Create_Call) Return

func (*ReceiverRepository_Create_Call) Run

type ReceiverRepository_Delete_Call

type ReceiverRepository_Delete_Call struct {
	*mock.Call
}

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

func (*ReceiverRepository_Delete_Call) Return

func (*ReceiverRepository_Delete_Call) Run

type ReceiverRepository_Expecter

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

func (*ReceiverRepository_Expecter) Create

func (_e *ReceiverRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *ReceiverRepository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *receiver.Receiver

func (*ReceiverRepository_Expecter) Delete

func (_e *ReceiverRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ReceiverRepository_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*ReceiverRepository_Expecter) Get

func (_e *ReceiverRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *ReceiverRepository_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*ReceiverRepository_Expecter) List

func (_e *ReceiverRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *ReceiverRepository_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 receiver.Filter

func (*ReceiverRepository_Expecter) Update

func (_e *ReceiverRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *ReceiverRepository_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *receiver.Receiver

type ReceiverRepository_Get_Call

type ReceiverRepository_Get_Call struct {
	*mock.Call
}

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

func (*ReceiverRepository_Get_Call) Return

func (*ReceiverRepository_Get_Call) Run

type ReceiverRepository_List_Call

type ReceiverRepository_List_Call struct {
	*mock.Call
}

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

func (*ReceiverRepository_List_Call) Return

func (*ReceiverRepository_List_Call) Run

type ReceiverRepository_Update_Call

type ReceiverRepository_Update_Call struct {
	*mock.Call
}

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

func (*ReceiverRepository_Update_Call) Return

func (*ReceiverRepository_Update_Call) Run

Jump to

Keyboard shortcuts

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