mocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 1 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Client) Close

func (_m *Client) Close()

Close provides a mock function with given fields:

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) Init

func (_m *Client) Init() error

Init provides a mock function with given fields:

func (*Client) StreamExists

func (_m *Client) StreamExists() (bool, error)

StreamExists provides a mock function with given fields:

type Client_Close_Call

type Client_Close_Call struct {
	*mock.Call
}

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

func (*Client_Close_Call) Return

func (_c *Client_Close_Call) Return() *Client_Close_Call

func (*Client_Close_Call) Run

func (_c *Client_Close_Call) Run(run func()) *Client_Close_Call

func (*Client_Close_Call) RunAndReturn

func (_c *Client_Close_Call) RunAndReturn(run func()) *Client_Close_Call

type Client_Expecter

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

func (*Client_Expecter) Close

func (_e *Client_Expecter) Close() *Client_Close_Call

Close is a helper method to define mock.On call

func (*Client_Expecter) Init

func (_e *Client_Expecter) Init() *Client_Init_Call

Init is a helper method to define mock.On call

func (*Client_Expecter) StreamExists

func (_e *Client_Expecter) StreamExists() *Client_StreamExists_Call

StreamExists is a helper method to define mock.On call

type Client_Init_Call

type Client_Init_Call struct {
	*mock.Call
}

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

func (*Client_Init_Call) Return

func (_c *Client_Init_Call) Return(_a0 error) *Client_Init_Call

func (*Client_Init_Call) Run

func (_c *Client_Init_Call) Run(run func()) *Client_Init_Call

func (*Client_Init_Call) RunAndReturn

func (_c *Client_Init_Call) RunAndReturn(run func() error) *Client_Init_Call

type Client_StreamExists_Call

type Client_StreamExists_Call struct {
	*mock.Call
}

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

func (*Client_StreamExists_Call) Return

func (*Client_StreamExists_Call) Run

func (*Client_StreamExists_Call) RunAndReturn

func (_c *Client_StreamExists_Call) RunAndReturn(run func() (bool, error)) *Client_StreamExists_Call

Jump to

Keyboard shortcuts

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