mocks

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Associator

type Associator struct {
	mock.Mock
}

Associator is an autogenerated mock type for the Associator type

func NewAssociator

func NewAssociator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Associator

NewAssociator creates a new instance of Associator. 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 (*Associator) AttachRegistry

func (_m *Associator) AttachRegistry(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], roleID ids.ID[ids.RoleKind], registryID ids.ID[ids.RegistryKind]) error

AttachRegistry provides a mock function with given fields: ctx, gatewayID, roleID, registryID

func (*Associator) DetachRegistry

func (_m *Associator) DetachRegistry(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], roleID ids.ID[ids.RoleKind], registryID ids.ID[ids.RegistryKind]) error

DetachRegistry provides a mock function with given fields: ctx, gatewayID, roleID, registryID

func (*Associator) EXPECT

func (_m *Associator) EXPECT() *Associator_Expecter

type Associator_AttachRegistry_Call

type Associator_AttachRegistry_Call struct {
	*mock.Call
}

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

func (*Associator_AttachRegistry_Call) Return

func (*Associator_AttachRegistry_Call) Run

func (*Associator_AttachRegistry_Call) RunAndReturn

type Associator_DetachRegistry_Call

type Associator_DetachRegistry_Call struct {
	*mock.Call
}

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

func (*Associator_DetachRegistry_Call) Return

func (*Associator_DetachRegistry_Call) Run

func (*Associator_DetachRegistry_Call) RunAndReturn

type Associator_Expecter

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

func (*Associator_Expecter) AttachRegistry

func (_e *Associator_Expecter) AttachRegistry(ctx interface{}, gatewayID interface{}, roleID interface{}, registryID interface{}) *Associator_AttachRegistry_Call

AttachRegistry is a helper method to define mock.On call

  • ctx context.Context
  • gatewayID ids.ID[ids.GatewayKind]
  • roleID ids.ID[ids.RoleKind]
  • registryID ids.ID[ids.RegistryKind]

func (*Associator_Expecter) DetachRegistry

func (_e *Associator_Expecter) DetachRegistry(ctx interface{}, gatewayID interface{}, roleID interface{}, registryID interface{}) *Associator_DetachRegistry_Call

DetachRegistry is a helper method to define mock.On call

  • ctx context.Context
  • gatewayID ids.ID[ids.GatewayKind]
  • roleID ids.ID[ids.RoleKind]
  • registryID ids.ID[ids.RegistryKind]

type Creator

type Creator struct {
	mock.Mock
}

Creator is an autogenerated mock type for the Creator type

func NewCreator

func NewCreator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Creator

NewCreator creates a new instance of Creator. 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 (*Creator) Create

func (_m *Creator) Create(ctx context.Context, in role.CreateInput) (*domainrole.Role, error)

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

func (*Creator) EXPECT

func (_m *Creator) EXPECT() *Creator_Expecter

type Creator_Create_Call

type Creator_Create_Call struct {
	*mock.Call
}

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

func (*Creator_Create_Call) Return

func (*Creator_Create_Call) Run

func (*Creator_Create_Call) RunAndReturn

type Creator_Expecter

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

func (*Creator_Expecter) Create

func (_e *Creator_Expecter) Create(ctx interface{}, in interface{}) *Creator_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • in role.CreateInput

type Deleter

type Deleter struct {
	mock.Mock
}

Deleter is an autogenerated mock type for the Deleter type

func NewDeleter

func NewDeleter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Deleter

NewDeleter creates a new instance of Deleter. 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 (*Deleter) Delete

func (_m *Deleter) Delete(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.RoleKind]) error

Delete provides a mock function with given fields: ctx, gatewayID, id

func (*Deleter) EXPECT

func (_m *Deleter) EXPECT() *Deleter_Expecter

type Deleter_Delete_Call

type Deleter_Delete_Call struct {
	*mock.Call
}

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

func (*Deleter_Delete_Call) Return

func (*Deleter_Delete_Call) Run

func (_c *Deleter_Delete_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.RoleKind])) *Deleter_Delete_Call

func (*Deleter_Delete_Call) RunAndReturn

type Deleter_Expecter

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

func (*Deleter_Expecter) Delete

func (_e *Deleter_Expecter) Delete(ctx interface{}, gatewayID interface{}, id interface{}) *Deleter_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • gatewayID ids.ID[ids.GatewayKind]
  • id ids.ID[ids.RoleKind]

type Finder

type Finder struct {
	mock.Mock
}

Finder is an autogenerated mock type for the Finder type

func NewFinder

func NewFinder(t interface {
	mock.TestingT
	Cleanup(func())
}) *Finder

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

func (_m *Finder) EXPECT() *Finder_Expecter

func (*Finder) FindByID

func (_m *Finder) FindByID(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.RoleKind]) (*role.Role, error)

FindByID provides a mock function with given fields: ctx, gatewayID, id

func (*Finder) List

func (_m *Finder) List(ctx context.Context, filter role.ListFilter) ([]*role.Role, int, error)

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

type Finder_Expecter

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

func (*Finder_Expecter) FindByID

func (_e *Finder_Expecter) FindByID(ctx interface{}, gatewayID interface{}, id interface{}) *Finder_FindByID_Call

FindByID is a helper method to define mock.On call

  • ctx context.Context
  • gatewayID ids.ID[ids.GatewayKind]
  • id ids.ID[ids.RoleKind]

func (*Finder_Expecter) List

func (_e *Finder_Expecter) List(ctx interface{}, filter interface{}) *Finder_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • filter role.ListFilter

type Finder_FindByID_Call

type Finder_FindByID_Call struct {
	*mock.Call
}

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

func (*Finder_FindByID_Call) Return

func (_c *Finder_FindByID_Call) Return(_a0 *role.Role, _a1 error) *Finder_FindByID_Call

func (*Finder_FindByID_Call) Run

func (_c *Finder_FindByID_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.RoleKind])) *Finder_FindByID_Call

func (*Finder_FindByID_Call) RunAndReturn

type Finder_List_Call

type Finder_List_Call struct {
	*mock.Call
}

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

func (*Finder_List_Call) Return

func (_c *Finder_List_Call) Return(_a0 []*role.Role, _a1 int, _a2 error) *Finder_List_Call

func (*Finder_List_Call) Run

func (_c *Finder_List_Call) Run(run func(ctx context.Context, filter role.ListFilter)) *Finder_List_Call

func (*Finder_List_Call) RunAndReturn

func (_c *Finder_List_Call) RunAndReturn(run func(context.Context, role.ListFilter) ([]*role.Role, int, error)) *Finder_List_Call

type Updater

type Updater struct {
	mock.Mock
}

Updater is an autogenerated mock type for the Updater type

func NewUpdater

func NewUpdater(t interface {
	mock.TestingT
	Cleanup(func())
}) *Updater

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

func (_m *Updater) EXPECT() *Updater_Expecter

func (*Updater) Update

func (_m *Updater) Update(ctx context.Context, in role.UpdateInput) (*domainrole.Role, error)

Update provides a mock function with given fields: ctx, in

type Updater_Expecter

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

func (*Updater_Expecter) Update

func (_e *Updater_Expecter) Update(ctx interface{}, in interface{}) *Updater_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • in role.UpdateInput

type Updater_Update_Call

type Updater_Update_Call struct {
	*mock.Call
}

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

func (*Updater_Update_Call) Return

func (*Updater_Update_Call) Run

func (*Updater_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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