mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceService

type NamespaceService struct {
	mock.Mock
}

NamespaceService is an autogenerated mock type for the NamespaceService type

func NewNamespaceService

func NewNamespaceService(t mockConstructorTestingTNewNamespaceService) *NamespaceService

NewNamespaceService creates a new instance of NamespaceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*NamespaceService) EXPECT

func (*NamespaceService) GetByID

func (_m *NamespaceService) GetByID(ctx context.Context, id uuid.UUID) (*namespace.Namespace, error)

GetByID provides a mock function with given fields: ctx, id

func (*NamespaceService) GetByName

func (_m *NamespaceService) GetByName(ctx context.Context, name string) (*namespace.Namespace, error)

GetByName provides a mock function with given fields: ctx, name

type NamespaceService_Expecter

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

func (*NamespaceService_Expecter) GetByID

func (_e *NamespaceService_Expecter) GetByID(ctx interface{}, id interface{}) *NamespaceService_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*NamespaceService_Expecter) GetByName

func (_e *NamespaceService_Expecter) GetByName(ctx interface{}, name interface{}) *NamespaceService_GetByName_Call

GetByName is a helper method to define mock.On call

  • ctx context.Context
  • name string

type NamespaceService_GetByID_Call

type NamespaceService_GetByID_Call struct {
	*mock.Call
}

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

func (*NamespaceService_GetByID_Call) Return

func (*NamespaceService_GetByID_Call) Run

func (*NamespaceService_GetByID_Call) RunAndReturn

type NamespaceService_GetByName_Call

type NamespaceService_GetByName_Call struct {
	*mock.Call
}

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

func (*NamespaceService_GetByName_Call) Return

func (*NamespaceService_GetByName_Call) Run

func (*NamespaceService_GetByName_Call) RunAndReturn

type StatsDClient

type StatsDClient struct {
	mock.Mock
}

StatsDClient is an autogenerated mock type for the StatsDClient type

func NewStatsDClient

func NewStatsDClient(t mockConstructorTestingTNewStatsDClient) *StatsDClient

NewStatsDClient creates a new instance of StatsDClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*StatsDClient) EXPECT

func (_m *StatsDClient) EXPECT() *StatsDClient_Expecter

func (*StatsDClient) Histogram

func (_m *StatsDClient) Histogram(name string, value float64) *statsd.Metric

Histogram provides a mock function with given fields: name, value

type StatsDClient_Expecter

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

func (*StatsDClient_Expecter) Histogram

func (_e *StatsDClient_Expecter) Histogram(name interface{}, value interface{}) *StatsDClient_Histogram_Call

Histogram is a helper method to define mock.On call

  • name string
  • value float64

type StatsDClient_Histogram_Call

type StatsDClient_Histogram_Call struct {
	*mock.Call
}

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

func (*StatsDClient_Histogram_Call) Return

func (*StatsDClient_Histogram_Call) Run

func (*StatsDClient_Histogram_Call) RunAndReturn

Jump to

Keyboard shortcuts

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