mocks

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 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 Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Client) Broadcast

func (_m *Client) Broadcast(ctx context.Context, msgs ...types.Msg) error

Broadcast provides a mock function with given fields: ctx, msgs

func (*Client) EXPECT added in v0.24.0

func (_m *Client) EXPECT() *Client_Expecter

type Client_Broadcast_Call added in v0.24.0

type Client_Broadcast_Call struct {
	*mock.Call
}

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

func (*Client_Broadcast_Call) Return added in v0.24.0

func (*Client_Broadcast_Call) Run added in v0.24.0

func (_c *Client_Broadcast_Call) Run(run func(ctx context.Context, msgs ...types.Msg)) *Client_Broadcast_Call

func (*Client_Broadcast_Call) RunAndReturn added in v0.24.0

func (_c *Client_Broadcast_Call) RunAndReturn(run func(context.Context, ...types.Msg) error) *Client_Broadcast_Call

type Client_Expecter added in v0.24.0

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

func (*Client_Expecter) Broadcast added in v0.24.0

func (_e *Client_Expecter) Broadcast(ctx interface{}, msgs ...interface{}) *Client_Broadcast_Call

Broadcast is a helper method to define mock.On call

  • ctx context.Context
  • msgs ...types.Msg

Jump to

Keyboard shortcuts

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