mocks

package
v0.95.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func (*ProjectService) ListByUser

func (_m *ProjectService) ListByUser(ctx context.Context, principal authenticate.Principal, flt project.Filter) ([]project.Project, error)

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

type ProjectService_Expecter

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

func (*ProjectService_Expecter) ListByUser

func (_e *ProjectService_Expecter) ListByUser(ctx interface{}, principal interface{}, flt interface{}) *ProjectService_ListByUser_Call

ListByUser is a helper method to define mock.On call

  • ctx context.Context
  • principal authenticate.Principal
  • flt project.Filter

type ProjectService_ListByUser_Call

type ProjectService_ListByUser_Call struct {
	*mock.Call
}

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

func (*ProjectService_ListByUser_Call) Return

func (*ProjectService_ListByUser_Call) Run

func (*ProjectService_ListByUser_Call) RunAndReturn

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

func (_m *Repository) Search(ctx context.Context, orgID string, query *rql.Query) (orgpats.OrganizationPATs, error)

Search provides a mock function with given fields: ctx, orgID, query

type Repository_Expecter

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

func (*Repository_Expecter) Search

func (_e *Repository_Expecter) Search(ctx interface{}, orgID interface{}, query interface{}) *Repository_Search_Call

Search is a helper method to define mock.On call

  • ctx context.Context
  • orgID string
  • query *rql.Query

type Repository_Search_Call

type Repository_Search_Call struct {
	*mock.Call
}

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

func (*Repository_Search_Call) Return

func (*Repository_Search_Call) Run

func (_c *Repository_Search_Call) Run(run func(ctx context.Context, orgID string, query *rql.Query)) *Repository_Search_Call

func (*Repository_Search_Call) RunAndReturn

Jump to

Keyboard shortcuts

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