mocks

package
v0.7.21 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 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 WardenClient

type WardenClient struct {
	mock.Mock
}

WardenClient is an autogenerated mock type for the WardenClient type

func NewWardenClient

func NewWardenClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *WardenClient

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

func (_m *WardenClient) EXPECT() *WardenClient_Expecter

func (*WardenClient) ListUserTeams

func (_m *WardenClient) ListUserTeams(ctx context.Context, req warden.TeamListRequest) ([]warden.Team, error)

ListUserTeams provides a mock function with given fields: ctx, req

func (*WardenClient) TeamByUUID

func (_m *WardenClient) TeamByUUID(ctx context.Context, req warden.TeamByUUIDRequest) (*warden.Team, error)

TeamByUUID provides a mock function with given fields: ctx, req

type WardenClient_Expecter

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

func (*WardenClient_Expecter) ListUserTeams

func (_e *WardenClient_Expecter) ListUserTeams(ctx interface{}, req interface{}) *WardenClient_ListUserTeams_Call

ListUserTeams is a helper method to define mock.On call

  • ctx context.Context
  • req warden.TeamListRequest

func (*WardenClient_Expecter) TeamByUUID

func (_e *WardenClient_Expecter) TeamByUUID(ctx interface{}, req interface{}) *WardenClient_TeamByUUID_Call

TeamByUUID is a helper method to define mock.On call

  • ctx context.Context
  • req warden.TeamByUUIDRequest

type WardenClient_ListUserTeams_Call

type WardenClient_ListUserTeams_Call struct {
	*mock.Call
}

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

func (*WardenClient_ListUserTeams_Call) Return

func (*WardenClient_ListUserTeams_Call) Run

func (*WardenClient_ListUserTeams_Call) RunAndReturn

type WardenClient_TeamByUUID_Call

type WardenClient_TeamByUUID_Call struct {
	*mock.Call
}

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

func (*WardenClient_TeamByUUID_Call) Return

func (*WardenClient_TeamByUUID_Call) Run

func (*WardenClient_TeamByUUID_Call) RunAndReturn

Jump to

Keyboard shortcuts

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