mocks

package
v0.97.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomerService

type CustomerService struct {
	mock.Mock
}

CustomerService is an autogenerated mock type for the CustomerService type

func NewCustomerService

func NewCustomerService(t interface {
	mock.TestingT
	Cleanup(func())
}) *CustomerService

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

func (_m *CustomerService) Delete(ctx context.Context, id string) error

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

func (*CustomerService) EXPECT

func (*CustomerService) List

func (_m *CustomerService) List(ctx context.Context, filter customer.Filter) ([]customer.Customer, error)

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

type CustomerService_Delete_Call

type CustomerService_Delete_Call struct {
	*mock.Call
}

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

func (*CustomerService_Delete_Call) Return

func (*CustomerService_Delete_Call) Run

func (*CustomerService_Delete_Call) RunAndReturn

type CustomerService_Expecter

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

func (*CustomerService_Expecter) Delete

func (_e *CustomerService_Expecter) Delete(ctx interface{}, id interface{}) *CustomerService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*CustomerService_Expecter) List

func (_e *CustomerService_Expecter) List(ctx interface{}, filter interface{}) *CustomerService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • filter customer.Filter

type CustomerService_List_Call

type CustomerService_List_Call struct {
	*mock.Call
}

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

func (*CustomerService_List_Call) Return

func (*CustomerService_List_Call) Run

func (*CustomerService_List_Call) RunAndReturn

type GroupService

type GroupService struct {
	mock.Mock
}

GroupService is an autogenerated mock type for the GroupService type

func NewGroupService

func NewGroupService(t interface {
	mock.TestingT
	Cleanup(func())
}) *GroupService

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

func (_m *GroupService) Delete(ctx context.Context, id string) error

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

func (*GroupService) EXPECT

func (_m *GroupService) EXPECT() *GroupService_Expecter

func (*GroupService) List

func (_m *GroupService) List(ctx context.Context, flt group.Filter) ([]group.Group, error)

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

func (*GroupService) RemoveUsers

func (_m *GroupService) RemoveUsers(ctx context.Context, groupID string, userIDs []string) error

RemoveUsers provides a mock function with given fields: ctx, groupID, userIDs

type GroupService_Delete_Call

type GroupService_Delete_Call struct {
	*mock.Call
}

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

func (*GroupService_Delete_Call) Return

func (*GroupService_Delete_Call) Run

func (*GroupService_Delete_Call) RunAndReturn

type GroupService_Expecter

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

func (*GroupService_Expecter) Delete

func (_e *GroupService_Expecter) Delete(ctx interface{}, id interface{}) *GroupService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*GroupService_Expecter) List

func (_e *GroupService_Expecter) List(ctx interface{}, flt interface{}) *GroupService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt group.Filter

func (*GroupService_Expecter) RemoveUsers

func (_e *GroupService_Expecter) RemoveUsers(ctx interface{}, groupID interface{}, userIDs interface{}) *GroupService_RemoveUsers_Call

RemoveUsers is a helper method to define mock.On call

  • ctx context.Context
  • groupID string
  • userIDs []string

type GroupService_List_Call

type GroupService_List_Call struct {
	*mock.Call
}

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

func (*GroupService_List_Call) Return

func (*GroupService_List_Call) Run

func (*GroupService_List_Call) RunAndReturn

type GroupService_RemoveUsers_Call

type GroupService_RemoveUsers_Call struct {
	*mock.Call
}

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

func (*GroupService_RemoveUsers_Call) Return

func (*GroupService_RemoveUsers_Call) Run

func (_c *GroupService_RemoveUsers_Call) Run(run func(ctx context.Context, groupID string, userIDs []string)) *GroupService_RemoveUsers_Call

func (*GroupService_RemoveUsers_Call) RunAndReturn

type InvitationService

type InvitationService struct {
	mock.Mock
}

InvitationService is an autogenerated mock type for the InvitationService type

func NewInvitationService

func NewInvitationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *InvitationService

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

func (_m *InvitationService) Delete(ctx context.Context, id uuid.UUID) error

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

func (*InvitationService) EXPECT

func (*InvitationService) List

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

type InvitationService_Delete_Call

type InvitationService_Delete_Call struct {
	*mock.Call
}

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

func (*InvitationService_Delete_Call) Return

func (*InvitationService_Delete_Call) Run

func (*InvitationService_Delete_Call) RunAndReturn

type InvitationService_Expecter

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

func (*InvitationService_Expecter) Delete

func (_e *InvitationService_Expecter) Delete(ctx interface{}, id interface{}) *InvitationService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*InvitationService_Expecter) List

func (_e *InvitationService_Expecter) List(ctx interface{}, flt interface{}) *InvitationService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt invitation.Filter

type InvitationService_List_Call

type InvitationService_List_Call struct {
	*mock.Call
}

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

func (*InvitationService_List_Call) Return

func (*InvitationService_List_Call) Run

func (*InvitationService_List_Call) RunAndReturn

type InvoiceService

type InvoiceService struct {
	mock.Mock
}

InvoiceService is an autogenerated mock type for the InvoiceService type

func NewInvoiceService

func NewInvoiceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *InvoiceService

NewInvoiceService creates a new instance of InvoiceService. 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 (*InvoiceService) DeleteByCustomer

func (_m *InvoiceService) DeleteByCustomer(ctx context.Context, customr customer.Customer) error

DeleteByCustomer provides a mock function with given fields: ctx, customr

func (*InvoiceService) EXPECT

func (*InvoiceService) List

func (_m *InvoiceService) List(ctx context.Context, flt invoice.Filter) ([]invoice.Invoice, error)

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

type InvoiceService_DeleteByCustomer_Call

type InvoiceService_DeleteByCustomer_Call struct {
	*mock.Call
}

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

func (*InvoiceService_DeleteByCustomer_Call) Return

func (*InvoiceService_DeleteByCustomer_Call) Run

func (*InvoiceService_DeleteByCustomer_Call) RunAndReturn

type InvoiceService_Expecter

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

func (*InvoiceService_Expecter) DeleteByCustomer

func (_e *InvoiceService_Expecter) DeleteByCustomer(ctx interface{}, customr interface{}) *InvoiceService_DeleteByCustomer_Call

DeleteByCustomer is a helper method to define mock.On call

  • ctx context.Context
  • customr customer.Customer

func (*InvoiceService_Expecter) List

func (_e *InvoiceService_Expecter) List(ctx interface{}, flt interface{}) *InvoiceService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt invoice.Filter

type InvoiceService_List_Call

type InvoiceService_List_Call struct {
	*mock.Call
}

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

func (*InvoiceService_List_Call) Return

func (*InvoiceService_List_Call) Run

func (*InvoiceService_List_Call) RunAndReturn

type OrganizationService

type OrganizationService struct {
	mock.Mock
}

OrganizationService is an autogenerated mock type for the OrganizationService type

func NewOrganizationService

func NewOrganizationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *OrganizationService

NewOrganizationService creates a new instance of OrganizationService. 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 (*OrganizationService) DeleteModel

func (_m *OrganizationService) DeleteModel(ctx context.Context, id string) error

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

func (*OrganizationService) EXPECT

func (*OrganizationService) Get

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

func (*OrganizationService) ListByUser

ListByUser provides a mock function with given fields: ctx, principal, f

func (*OrganizationService) RemoveUsers

func (_m *OrganizationService) RemoveUsers(ctx context.Context, orgID string, userIDs []string) error

RemoveUsers provides a mock function with given fields: ctx, orgID, userIDs

type OrganizationService_DeleteModel_Call

type OrganizationService_DeleteModel_Call struct {
	*mock.Call
}

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

func (*OrganizationService_DeleteModel_Call) Return

func (*OrganizationService_DeleteModel_Call) Run

func (*OrganizationService_DeleteModel_Call) RunAndReturn

type OrganizationService_Expecter

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

func (*OrganizationService_Expecter) DeleteModel

func (_e *OrganizationService_Expecter) DeleteModel(ctx interface{}, id interface{}) *OrganizationService_DeleteModel_Call

DeleteModel is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*OrganizationService_Expecter) Get

func (_e *OrganizationService_Expecter) Get(ctx interface{}, id interface{}) *OrganizationService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*OrganizationService_Expecter) ListByUser

func (_e *OrganizationService_Expecter) ListByUser(ctx interface{}, principal interface{}, f interface{}) *OrganizationService_ListByUser_Call

ListByUser is a helper method to define mock.On call

  • ctx context.Context
  • principal authenticate.Principal
  • f organization.Filter

func (*OrganizationService_Expecter) RemoveUsers

func (_e *OrganizationService_Expecter) RemoveUsers(ctx interface{}, orgID interface{}, userIDs interface{}) *OrganizationService_RemoveUsers_Call

RemoveUsers is a helper method to define mock.On call

  • ctx context.Context
  • orgID string
  • userIDs []string

type OrganizationService_Get_Call

type OrganizationService_Get_Call struct {
	*mock.Call
}

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

func (*OrganizationService_Get_Call) Return

func (*OrganizationService_Get_Call) Run

func (*OrganizationService_Get_Call) RunAndReturn

type OrganizationService_ListByUser_Call

type OrganizationService_ListByUser_Call struct {
	*mock.Call
}

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

func (*OrganizationService_ListByUser_Call) Return

func (*OrganizationService_ListByUser_Call) Run

type OrganizationService_RemoveUsers_Call

type OrganizationService_RemoveUsers_Call struct {
	*mock.Call
}

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

func (*OrganizationService_RemoveUsers_Call) Return

func (*OrganizationService_RemoveUsers_Call) Run

func (*OrganizationService_RemoveUsers_Call) RunAndReturn

type PolicyService

type PolicyService struct {
	mock.Mock
}

PolicyService is an autogenerated mock type for the PolicyService type

func NewPolicyService

func NewPolicyService(t interface {
	mock.TestingT
	Cleanup(func())
}) *PolicyService

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

func (_m *PolicyService) Delete(ctx context.Context, id string) error

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

func (*PolicyService) EXPECT

func (_m *PolicyService) EXPECT() *PolicyService_Expecter

func (*PolicyService) List

func (_m *PolicyService) List(ctx context.Context, flt policy.Filter) ([]policy.Policy, error)

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

type PolicyService_Delete_Call

type PolicyService_Delete_Call struct {
	*mock.Call
}

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

func (*PolicyService_Delete_Call) Return

func (*PolicyService_Delete_Call) Run

func (*PolicyService_Delete_Call) RunAndReturn

type PolicyService_Expecter

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

func (*PolicyService_Expecter) Delete

func (_e *PolicyService_Expecter) Delete(ctx interface{}, id interface{}) *PolicyService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*PolicyService_Expecter) List

func (_e *PolicyService_Expecter) List(ctx interface{}, flt interface{}) *PolicyService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt policy.Filter

type PolicyService_List_Call

type PolicyService_List_Call struct {
	*mock.Call
}

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

func (*PolicyService_List_Call) Return

func (*PolicyService_List_Call) Run

func (*PolicyService_List_Call) RunAndReturn

type ProjectService

type ProjectService struct {
	mock.Mock
}

ProjectService is an autogenerated mock type for the ProjectService type

func NewProjectService

func NewProjectService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProjectService

NewProjectService creates a new instance of ProjectService. 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 (*ProjectService) DeleteModel

func (_m *ProjectService) DeleteModel(ctx context.Context, id string) error

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

func (*ProjectService) EXPECT

func (*ProjectService) List

func (_m *ProjectService) List(ctx context.Context, flt project.Filter) ([]project.Project, error)

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

type ProjectService_DeleteModel_Call

type ProjectService_DeleteModel_Call struct {
	*mock.Call
}

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

func (*ProjectService_DeleteModel_Call) Return

func (*ProjectService_DeleteModel_Call) Run

func (*ProjectService_DeleteModel_Call) RunAndReturn

type ProjectService_Expecter

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

func (*ProjectService_Expecter) DeleteModel

func (_e *ProjectService_Expecter) DeleteModel(ctx interface{}, id interface{}) *ProjectService_DeleteModel_Call

DeleteModel is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*ProjectService_Expecter) List

func (_e *ProjectService_Expecter) List(ctx interface{}, flt interface{}) *ProjectService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt project.Filter

type ProjectService_List_Call

type ProjectService_List_Call struct {
	*mock.Call
}

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

func (*ProjectService_List_Call) Return

func (*ProjectService_List_Call) Run

func (*ProjectService_List_Call) RunAndReturn

type ResourceService

type ResourceService struct {
	mock.Mock
}

ResourceService is an autogenerated mock type for the ResourceService type

func NewResourceService

func NewResourceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResourceService

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

func (_m *ResourceService) Delete(ctx context.Context, namespaceID string, id string) error

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

func (*ResourceService) EXPECT

func (*ResourceService) Get

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

func (*ResourceService) List

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

type ResourceService_Delete_Call

type ResourceService_Delete_Call struct {
	*mock.Call
}

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

func (*ResourceService_Delete_Call) Return

func (*ResourceService_Delete_Call) Run

func (_c *ResourceService_Delete_Call) Run(run func(ctx context.Context, namespaceID string, id string)) *ResourceService_Delete_Call

func (*ResourceService_Delete_Call) RunAndReturn

type ResourceService_Expecter

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

func (*ResourceService_Expecter) Delete

func (_e *ResourceService_Expecter) Delete(ctx interface{}, namespaceID interface{}, id interface{}) *ResourceService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • namespaceID string
  • id string

func (*ResourceService_Expecter) Get

func (_e *ResourceService_Expecter) Get(ctx interface{}, id interface{}) *ResourceService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*ResourceService_Expecter) List

func (_e *ResourceService_Expecter) List(ctx interface{}, flt interface{}) *ResourceService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt resource.Filter

type ResourceService_Get_Call

type ResourceService_Get_Call struct {
	*mock.Call
}

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

func (*ResourceService_Get_Call) Return

func (*ResourceService_Get_Call) Run

func (*ResourceService_Get_Call) RunAndReturn

type ResourceService_List_Call

type ResourceService_List_Call struct {
	*mock.Call
}

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

func (*ResourceService_List_Call) Return

func (*ResourceService_List_Call) Run

func (*ResourceService_List_Call) RunAndReturn

type RoleService

type RoleService struct {
	mock.Mock
}

RoleService is an autogenerated mock type for the RoleService type

func NewRoleService

func NewRoleService(t interface {
	mock.TestingT
	Cleanup(func())
}) *RoleService

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

func (_m *RoleService) Delete(ctx context.Context, id string) error

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

func (*RoleService) EXPECT

func (_m *RoleService) EXPECT() *RoleService_Expecter

func (*RoleService) List

func (_m *RoleService) List(ctx context.Context, flt role.Filter) ([]role.Role, error)

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

type RoleService_Delete_Call

type RoleService_Delete_Call struct {
	*mock.Call
}

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

func (*RoleService_Delete_Call) Return

func (*RoleService_Delete_Call) Run

func (*RoleService_Delete_Call) RunAndReturn

type RoleService_Expecter

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

func (*RoleService_Expecter) Delete

func (_e *RoleService_Expecter) Delete(ctx interface{}, id interface{}) *RoleService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*RoleService_Expecter) List

func (_e *RoleService_Expecter) List(ctx interface{}, flt interface{}) *RoleService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt role.Filter

type RoleService_List_Call

type RoleService_List_Call struct {
	*mock.Call
}

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

func (*RoleService_List_Call) Return

func (_c *RoleService_List_Call) Return(_a0 []role.Role, _a1 error) *RoleService_List_Call

func (*RoleService_List_Call) Run

func (*RoleService_List_Call) RunAndReturn

type SubscriptionService

type SubscriptionService struct {
	mock.Mock
}

SubscriptionService is an autogenerated mock type for the SubscriptionService type

func NewSubscriptionService

func NewSubscriptionService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SubscriptionService

NewSubscriptionService creates a new instance of SubscriptionService. 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 (*SubscriptionService) DeleteByCustomer

func (_m *SubscriptionService) DeleteByCustomer(ctx context.Context, customr customer.Customer) error

DeleteByCustomer provides a mock function with given fields: ctx, customr

func (*SubscriptionService) EXPECT

type SubscriptionService_DeleteByCustomer_Call

type SubscriptionService_DeleteByCustomer_Call struct {
	*mock.Call
}

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

func (*SubscriptionService_DeleteByCustomer_Call) Return

func (*SubscriptionService_DeleteByCustomer_Call) Run

func (*SubscriptionService_DeleteByCustomer_Call) RunAndReturn

type SubscriptionService_Expecter

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

func (*SubscriptionService_Expecter) DeleteByCustomer

func (_e *SubscriptionService_Expecter) DeleteByCustomer(ctx interface{}, customr interface{}) *SubscriptionService_DeleteByCustomer_Call

DeleteByCustomer is a helper method to define mock.On call

  • ctx context.Context
  • customr customer.Customer

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) Delete

func (_m *UserService) Delete(ctx context.Context, id string) error

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

func (*UserService) EXPECT

func (_m *UserService) EXPECT() *UserService_Expecter

type UserService_Delete_Call

type UserService_Delete_Call struct {
	*mock.Call
}

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

func (*UserService_Delete_Call) Return

func (*UserService_Delete_Call) Run

func (*UserService_Delete_Call) RunAndReturn

type UserService_Expecter

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

func (*UserService_Expecter) Delete

func (_e *UserService_Expecter) Delete(ctx interface{}, id interface{}) *UserService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

Jump to

Keyboard shortcuts

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