Documentation ¶
Index ¶
- type Dialer
- type Dialer_DialContext_Call
- func (_c *Dialer_DialContext_Call) Return(c loggerv1alpha1.LoggerAPI_WriteClient, close func() error, err error) *Dialer_DialContext_Call
- func (_c *Dialer_DialContext_Call) Run(run func(ctx context.Context, endpoint string)) *Dialer_DialContext_Call
- func (_c *Dialer_DialContext_Call) RunAndReturn(...) *Dialer_DialContext_Call
- type Dialer_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialer ¶
Dialer is an autogenerated mock type for the Dialer type
func NewDialer ¶
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 ¶
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 (_c *Dialer_DialContext_Call) Return(c loggerv1alpha1.LoggerAPI_WriteClient, close func() error, err error) *Dialer_DialContext_Call
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 ¶
func (_c *Dialer_DialContext_Call) RunAndReturn(run func(context.Context, string) (loggerv1alpha1.LoggerAPI_WriteClient, func() error, error)) *Dialer_DialContext_Call
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
Click to show internal directories.
Click to hide internal directories.