mocks

package
v0.0.0-...-7ab98b7 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 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 Submitter

type Submitter struct {
	mock.Mock
}

Submitter is an autogenerated mock type for the Submitter type

func NewSubmitter

func NewSubmitter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Submitter

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

func (_m *Submitter) EXPECT() *Submitter_Expecter

func (*Submitter) Submit

func (_m *Submitter) Submit(start time.Time, name string, messages *types.Payload)

Submit provides a mock function with given fields: start, name, messages

type Submitter_Expecter

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

func (*Submitter_Expecter) Submit

func (_e *Submitter_Expecter) Submit(start interface{}, name interface{}, messages interface{}) *Submitter_Submit_Call

Submit is a helper method to define mock.On call

  • start time.Time
  • name string
  • messages *types.Payload

type Submitter_Submit_Call

type Submitter_Submit_Call struct {
	*mock.Call
}

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

func (*Submitter_Submit_Call) Return

func (*Submitter_Submit_Call) Run

func (_c *Submitter_Submit_Call) Run(run func(start time.Time, name string, messages *types.Payload)) *Submitter_Submit_Call

func (*Submitter_Submit_Call) RunAndReturn

func (_c *Submitter_Submit_Call) RunAndReturn(run func(time.Time, string, *types.Payload)) *Submitter_Submit_Call

Jump to

Keyboard shortcuts

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