Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
Writer is an autogenerated mock type for the Writer type
func NewWriter ¶
func NewWriter(t mockConstructorTestingTNewWriter) *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.
func NewWriterMockedAll ¶
func NewWriterMockedAll() *Writer
func (*Writer) EXPECT ¶
func (_m *Writer) EXPECT() *Writer_Expecter
func (*Writer) GetPriority ¶
GetPriority provides a mock function with given fields:
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 ¶
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 (_c *Writer_GetPriority_Call) Return(_a0 int) *Writer_GetPriority_Call
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 ¶
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 (_c *Writer_WriteOne_Call) Return() *Writer_WriteOne_Call
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 ¶
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