mocks

package
v0.70.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 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 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) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) GetByOrgID

func (_m *Repository) GetByOrgID(_a0 context.Context, _a1 string) (kyc.KYC, error)

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

func (*Repository) List added in v0.57.0

func (_m *Repository) List(_a0 context.Context) ([]kyc.KYC, error)

List provides a mock function with given fields: _a0

func (*Repository) Upsert

func (_m *Repository) Upsert(_a0 context.Context, _a1 kyc.KYC) (kyc.KYC, error)

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

type Repository_Expecter

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

func (*Repository_Expecter) GetByOrgID

func (_e *Repository_Expecter) GetByOrgID(_a0 interface{}, _a1 interface{}) *Repository_GetByOrgID_Call

GetByOrgID is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*Repository_Expecter) List added in v0.57.0

func (_e *Repository_Expecter) List(_a0 interface{}) *Repository_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context

func (*Repository_Expecter) Upsert

func (_e *Repository_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *Repository_Upsert_Call

Upsert is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 kyc.KYC

type Repository_GetByOrgID_Call

type Repository_GetByOrgID_Call struct {
	*mock.Call
}

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

func (*Repository_GetByOrgID_Call) Return

func (*Repository_GetByOrgID_Call) Run

func (*Repository_GetByOrgID_Call) RunAndReturn

type Repository_List_Call added in v0.57.0

type Repository_List_Call struct {
	*mock.Call
}

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

func (*Repository_List_Call) Return added in v0.57.0

func (_c *Repository_List_Call) Return(_a0 []kyc.KYC, _a1 error) *Repository_List_Call

func (*Repository_List_Call) Run added in v0.57.0

func (_c *Repository_List_Call) Run(run func(_a0 context.Context)) *Repository_List_Call

func (*Repository_List_Call) RunAndReturn added in v0.57.0

func (_c *Repository_List_Call) RunAndReturn(run func(context.Context) ([]kyc.KYC, error)) *Repository_List_Call

type Repository_Upsert_Call

type Repository_Upsert_Call struct {
	*mock.Call
}

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

func (*Repository_Upsert_Call) Return

func (*Repository_Upsert_Call) Run

func (_c *Repository_Upsert_Call) Run(run func(_a0 context.Context, _a1 kyc.KYC)) *Repository_Upsert_Call

func (*Repository_Upsert_Call) RunAndReturn

func (_c *Repository_Upsert_Call) RunAndReturn(run func(context.Context, kyc.KYC) (kyc.KYC, error)) *Repository_Upsert_Call

Jump to

Keyboard shortcuts

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