mocks

package
v2.27.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserConverter

type UserConverter struct {
	mock.Mock
}

UserConverter is an autogenerated mock type for the UserConverter type

func NewUserConverter

func NewUserConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserConverter

NewUserConverter creates a new instance of UserConverter. 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 (*UserConverter) EXPECT added in v2.19.6

func (_m *UserConverter) EXPECT() *UserConverter_Expecter

func (*UserConverter) GetUser added in v2.17.0

func (_m *UserConverter) GetUser(userid *userv1beta1.UserId) (*userv1beta1.User, error)

GetUser provides a mock function with given fields: userid

func (*UserConverter) UserIDToUserName

func (_m *UserConverter) UserIDToUserName(ctx context.Context, userid *userv1beta1.UserId) (string, error)

UserIDToUserName provides a mock function with given fields: ctx, userid

func (*UserConverter) UserNameToUserID

func (_m *UserConverter) UserNameToUserID(ctx context.Context, username string) (*userv1beta1.UserId, error)

UserNameToUserID provides a mock function with given fields: ctx, username

type UserConverter_Expecter added in v2.19.6

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

func (*UserConverter_Expecter) GetUser added in v2.19.6

func (_e *UserConverter_Expecter) GetUser(userid interface{}) *UserConverter_GetUser_Call

GetUser is a helper method to define mock.On call

  • userid *userv1beta1.UserId

func (*UserConverter_Expecter) UserIDToUserName added in v2.19.6

func (_e *UserConverter_Expecter) UserIDToUserName(ctx interface{}, userid interface{}) *UserConverter_UserIDToUserName_Call

UserIDToUserName is a helper method to define mock.On call

  • ctx context.Context
  • userid *userv1beta1.UserId

func (*UserConverter_Expecter) UserNameToUserID added in v2.19.6

func (_e *UserConverter_Expecter) UserNameToUserID(ctx interface{}, username interface{}) *UserConverter_UserNameToUserID_Call

UserNameToUserID is a helper method to define mock.On call

  • ctx context.Context
  • username string

type UserConverter_GetUser_Call added in v2.19.6

type UserConverter_GetUser_Call struct {
	*mock.Call
}

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

func (*UserConverter_GetUser_Call) Return added in v2.19.6

func (*UserConverter_GetUser_Call) Run added in v2.19.6

func (*UserConverter_GetUser_Call) RunAndReturn added in v2.19.6

type UserConverter_UserIDToUserName_Call added in v2.19.6

type UserConverter_UserIDToUserName_Call struct {
	*mock.Call
}

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

func (*UserConverter_UserIDToUserName_Call) Return added in v2.19.6

func (*UserConverter_UserIDToUserName_Call) Run added in v2.19.6

func (*UserConverter_UserIDToUserName_Call) RunAndReturn added in v2.19.6

type UserConverter_UserNameToUserID_Call added in v2.19.6

type UserConverter_UserNameToUserID_Call struct {
	*mock.Call
}

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

func (*UserConverter_UserNameToUserID_Call) Return added in v2.19.6

func (*UserConverter_UserNameToUserID_Call) Run added in v2.19.6

func (*UserConverter_UserNameToUserID_Call) RunAndReturn added in v2.19.6

Jump to

Keyboard shortcuts

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