mocks

package
v2.22.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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