mocks

package
v0.85.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 9 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) Create

Create provides a mock function with given fields: ctx, auditRecord

func (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) Export added in v0.75.0

func (_m *Repository) Export(ctx context.Context, query *rql.Query) (io.Reader, string, error)

Export provides a mock function with given fields: ctx, query

func (*Repository) GetByIdempotencyKey

func (_m *Repository) GetByIdempotencyKey(ctx context.Context, idempotencyKey string) (auditrecord.AuditRecord, error)

GetByIdempotencyKey provides a mock function with given fields: ctx, idempotencyKey

func (*Repository) List added in v0.75.0

List provides a mock function with given fields: ctx, query

type Repository_Create_Call

type Repository_Create_Call struct {
	*mock.Call
}

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

func (*Repository_Create_Call) Return

func (*Repository_Create_Call) Run

func (*Repository_Create_Call) RunAndReturn

type Repository_Expecter

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

func (*Repository_Expecter) Create

func (_e *Repository_Expecter) Create(ctx interface{}, auditRecord interface{}) *Repository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • auditRecord auditrecord.AuditRecord

func (*Repository_Expecter) Export added in v0.75.0

func (_e *Repository_Expecter) Export(ctx interface{}, query interface{}) *Repository_Export_Call

Export is a helper method to define mock.On call

  • ctx context.Context
  • query *rql.Query

func (*Repository_Expecter) GetByIdempotencyKey

func (_e *Repository_Expecter) GetByIdempotencyKey(ctx interface{}, idempotencyKey interface{}) *Repository_GetByIdempotencyKey_Call

GetByIdempotencyKey is a helper method to define mock.On call

  • ctx context.Context
  • idempotencyKey string

func (*Repository_Expecter) List added in v0.75.0

func (_e *Repository_Expecter) List(ctx interface{}, query interface{}) *Repository_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • query *rql.Query

type Repository_Export_Call added in v0.75.0

type Repository_Export_Call struct {
	*mock.Call
}

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

func (*Repository_Export_Call) Return added in v0.75.0

func (*Repository_Export_Call) Run added in v0.75.0

func (_c *Repository_Export_Call) Run(run func(ctx context.Context, query *rql.Query)) *Repository_Export_Call

func (*Repository_Export_Call) RunAndReturn added in v0.75.0

type Repository_GetByIdempotencyKey_Call

type Repository_GetByIdempotencyKey_Call struct {
	*mock.Call
}

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

func (*Repository_GetByIdempotencyKey_Call) Return

func (*Repository_GetByIdempotencyKey_Call) Run

func (*Repository_GetByIdempotencyKey_Call) RunAndReturn

type Repository_List_Call added in v0.75.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.75.0

func (*Repository_List_Call) Run added in v0.75.0

func (_c *Repository_List_Call) Run(run func(ctx context.Context, query *rql.Query)) *Repository_List_Call

func (*Repository_List_Call) RunAndReturn added in v0.75.0

type ServiceUserService

type ServiceUserService struct {
	mock.Mock
}

ServiceUserService is an autogenerated mock type for the ServiceUserService type

func NewServiceUserService

func NewServiceUserService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceUserService

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

func (*ServiceUserService) Get

Get provides a mock function with given fields: ctx, id

type ServiceUserService_Expecter

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

func (*ServiceUserService_Expecter) Get

func (_e *ServiceUserService_Expecter) Get(ctx interface{}, id interface{}) *ServiceUserService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

type ServiceUserService_Get_Call

type ServiceUserService_Get_Call struct {
	*mock.Call
}

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

func (*ServiceUserService_Get_Call) Return

func (*ServiceUserService_Get_Call) Run

func (*ServiceUserService_Get_Call) RunAndReturn

type SessionService added in v0.75.0

type SessionService struct {
	mock.Mock
}

SessionService is an autogenerated mock type for the SessionService type

func NewSessionService added in v0.75.0

func NewSessionService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SessionService

NewSessionService creates a new instance of SessionService. 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 (*SessionService) EXPECT added in v0.75.0

func (*SessionService) Get added in v0.75.0

func (_m *SessionService) Get(ctx context.Context, id uuid.UUID) (*session.Session, error)

Get provides a mock function with given fields: ctx, id

type SessionService_Expecter added in v0.75.0

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

func (*SessionService_Expecter) Get added in v0.75.0

func (_e *SessionService_Expecter) Get(ctx interface{}, id interface{}) *SessionService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

type SessionService_Get_Call added in v0.75.0

type SessionService_Get_Call struct {
	*mock.Call
}

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

func (*SessionService_Get_Call) Return added in v0.75.0

func (*SessionService_Get_Call) Run added in v0.75.0

func (*SessionService_Get_Call) RunAndReturn added in v0.75.0

type UserService

type UserService struct {
	mock.Mock
}

UserService is an autogenerated mock type for the UserService type

func NewUserService

func NewUserService(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserService

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

func (_m *UserService) EXPECT() *UserService_Expecter

func (*UserService) GetByID

func (_m *UserService) GetByID(ctx context.Context, id string) (user.User, error)

GetByID provides a mock function with given fields: ctx, id

func (*UserService) IsSudo

func (_m *UserService) IsSudo(ctx context.Context, id string, permissionName string) (bool, error)

IsSudo provides a mock function with given fields: ctx, id, permissionName

type UserService_Expecter

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

func (*UserService_Expecter) GetByID

func (_e *UserService_Expecter) GetByID(ctx interface{}, id interface{}) *UserService_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*UserService_Expecter) IsSudo

func (_e *UserService_Expecter) IsSudo(ctx interface{}, id interface{}, permissionName interface{}) *UserService_IsSudo_Call

IsSudo is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • permissionName string

type UserService_GetByID_Call

type UserService_GetByID_Call struct {
	*mock.Call
}

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

func (*UserService_GetByID_Call) Return

func (*UserService_GetByID_Call) Run

func (*UserService_GetByID_Call) RunAndReturn

type UserService_IsSudo_Call

type UserService_IsSudo_Call struct {
	*mock.Call
}

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

func (*UserService_IsSudo_Call) Return

func (*UserService_IsSudo_Call) Run

func (_c *UserService_IsSudo_Call) Run(run func(ctx context.Context, id string, permissionName string)) *UserService_IsSudo_Call

func (*UserService_IsSudo_Call) RunAndReturn

Jump to

Keyboard shortcuts

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