mocks

package
v0.29.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	mock.Mock
}

Writer is an autogenerated mock type for the Writer type

func NewWriter

func NewWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Writer

NewWriter creates a new instance of Writer. 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 NewWriterMockedAll

func NewWriterMockedAll() *Writer

func (*Writer) EXPECT

func (_m *Writer) EXPECT() *Writer_Expecter

func (*Writer) GetPriority

func (_m *Writer) GetPriority() int

GetPriority provides a mock function with given fields:

func (*Writer) Write

func (_m *Writer) Write(batch metric.Data)

Write provides a mock function with given fields: batch

func (*Writer) WriteOne

func (_m *Writer) WriteOne(data *metric.Datum)

WriteOne provides a mock function with given fields: data

type Writer_Expecter

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

func (*Writer_Expecter) GetPriority

func (_e *Writer_Expecter) GetPriority() *Writer_GetPriority_Call

GetPriority is a helper method to define mock.On call

func (*Writer_Expecter) Write

func (_e *Writer_Expecter) Write(batch interface{}) *Writer_Write_Call

Write is a helper method to define mock.On call

  • batch metric.Data

func (*Writer_Expecter) WriteOne

func (_e *Writer_Expecter) WriteOne(data interface{}) *Writer_WriteOne_Call

WriteOne is a helper method to define mock.On call

  • data *metric.Datum

type Writer_GetPriority_Call

type Writer_GetPriority_Call struct {
	*mock.Call
}

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

func (*Writer_GetPriority_Call) Return

func (*Writer_GetPriority_Call) Run

func (_c *Writer_GetPriority_Call) Run(run func()) *Writer_GetPriority_Call

func (*Writer_GetPriority_Call) RunAndReturn

func (_c *Writer_GetPriority_Call) RunAndReturn(run func() int) *Writer_GetPriority_Call

type Writer_WriteOne_Call

type Writer_WriteOne_Call struct {
	*mock.Call
}

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

func (*Writer_WriteOne_Call) Return

func (*Writer_WriteOne_Call) Run

func (_c *Writer_WriteOne_Call) Run(run func(data *metric.Datum)) *Writer_WriteOne_Call

func (*Writer_WriteOne_Call) RunAndReturn

func (_c *Writer_WriteOne_Call) RunAndReturn(run func(*metric.Datum)) *Writer_WriteOne_Call

type Writer_Write_Call

type Writer_Write_Call struct {
	*mock.Call
}

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

func (*Writer_Write_Call) Return

func (_c *Writer_Write_Call) Return() *Writer_Write_Call

func (*Writer_Write_Call) Run

func (_c *Writer_Write_Call) Run(run func(batch metric.Data)) *Writer_Write_Call

func (*Writer_Write_Call) RunAndReturn

func (_c *Writer_Write_Call) RunAndReturn(run func(metric.Data)) *Writer_Write_Call

Jump to

Keyboard shortcuts

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