mockgridlogger

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: GPL-3.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 Dialer

type Dialer struct {
	mock.Mock
}

Dialer is an autogenerated mock type for the Dialer type

func NewDialer

func NewDialer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Dialer

NewDialer creates a new instance of Dialer. 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 (*Dialer) DialContext

func (_m *Dialer) DialContext(ctx context.Context, endpoint string) (loggerv1alpha1.LoggerAPI_WriteClient, func() error, error)

DialContext provides a mock function with given fields: ctx, endpoint

func (*Dialer) EXPECT

func (_m *Dialer) EXPECT() *Dialer_Expecter

type Dialer_DialContext_Call

type Dialer_DialContext_Call struct {
	*mock.Call
}

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

func (*Dialer_DialContext_Call) Return

func (*Dialer_DialContext_Call) Run

func (_c *Dialer_DialContext_Call) Run(run func(ctx context.Context, endpoint string)) *Dialer_DialContext_Call

func (*Dialer_DialContext_Call) RunAndReturn

type Dialer_Expecter

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

func (*Dialer_Expecter) DialContext

func (_e *Dialer_Expecter) DialContext(ctx interface{}, endpoint interface{}) *Dialer_DialContext_Call

DialContext is a helper method to define mock.On call

  • ctx context.Context
  • endpoint string

Jump to

Keyboard shortcuts

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