mocks

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 added in v0.5.3

Jump to

Keyboard shortcuts

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