cache

package
v3.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMembershipService

type MockMembershipService struct {
	mock.Mock
}

MockMembershipService is an autogenerated mock type for the MembershipService type

func NewMockMembershipService

func NewMockMembershipService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMembershipService

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

func (*MockMembershipService) Get

func (_mock *MockMembershipService) Get(ctx context.Context, _forge forge.Forge, u *model.User, org string) (*model.OrgPerm, error)

Get provides a mock function for the type MockMembershipService

type MockMembershipService_Expecter

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

func (*MockMembershipService_Expecter) Get

func (_e *MockMembershipService_Expecter) Get(ctx interface{}, _forge interface{}, u interface{}, org interface{}) *MockMembershipService_Get_Call

Get is a helper method to define mock.On call

  • ctx
  • _forge
  • u
  • org

type MockMembershipService_Get_Call

type MockMembershipService_Get_Call struct {
	*mock.Call
}

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

func (*MockMembershipService_Get_Call) Return

func (*MockMembershipService_Get_Call) Run

func (*MockMembershipService_Get_Call) RunAndReturn

Jump to

Keyboard shortcuts

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