mocks

package
v2.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT 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 added in v2.8.0

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient added in v2.8.0

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) EXPECT added in v2.8.0

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetCalendar added in v2.8.0

func (_m *Client) GetCalendar(_a0 context.Context) ([]string, error)

GetCalendar provides a mock function with given fields: _a0

func (*Client) GetHealth added in v2.8.0

func (_m *Client) GetHealth(_a0 context.Context) (map[string]int, error)

GetHealth provides a mock function with given fields: _a0

func (*Client) GetLibrary added in v2.8.0

func (_m *Client) GetLibrary(_a0 context.Context) (clients.Library, error)

GetLibrary provides a mock function with given fields: _a0

func (*Client) GetQueue added in v2.8.0

func (_m *Client) GetQueue(_a0 context.Context) ([]clients.QueuedItem, error)

GetQueue provides a mock function with given fields: _a0

func (*Client) GetVersion added in v2.8.0

func (_m *Client) GetVersion(_a0 context.Context) (string, error)

GetVersion provides a mock function with given fields: _a0

type Client_Expecter added in v2.8.0

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

func (*Client_Expecter) GetCalendar added in v2.8.0

func (_e *Client_Expecter) GetCalendar(_a0 interface{}) *Client_GetCalendar_Call

GetCalendar is a helper method to define mock.On call

  • _a0 context.Context

func (*Client_Expecter) GetHealth added in v2.8.0

func (_e *Client_Expecter) GetHealth(_a0 interface{}) *Client_GetHealth_Call

GetHealth is a helper method to define mock.On call

  • _a0 context.Context

func (*Client_Expecter) GetLibrary added in v2.8.0

func (_e *Client_Expecter) GetLibrary(_a0 interface{}) *Client_GetLibrary_Call

GetLibrary is a helper method to define mock.On call

  • _a0 context.Context

func (*Client_Expecter) GetQueue added in v2.8.0

func (_e *Client_Expecter) GetQueue(_a0 interface{}) *Client_GetQueue_Call

GetQueue is a helper method to define mock.On call

  • _a0 context.Context

func (*Client_Expecter) GetVersion added in v2.8.0

func (_e *Client_Expecter) GetVersion(_a0 interface{}) *Client_GetVersion_Call

GetVersion is a helper method to define mock.On call

  • _a0 context.Context

type Client_GetCalendar_Call added in v2.8.0

type Client_GetCalendar_Call struct {
	*mock.Call
}

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

func (*Client_GetCalendar_Call) Return added in v2.8.0

func (*Client_GetCalendar_Call) Run added in v2.8.0

func (*Client_GetCalendar_Call) RunAndReturn added in v2.8.0

func (_c *Client_GetCalendar_Call) RunAndReturn(run func(context.Context) ([]string, error)) *Client_GetCalendar_Call

type Client_GetHealth_Call added in v2.8.0

type Client_GetHealth_Call struct {
	*mock.Call
}

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

func (*Client_GetHealth_Call) Return added in v2.8.0

func (_c *Client_GetHealth_Call) Return(_a0 map[string]int, _a1 error) *Client_GetHealth_Call

func (*Client_GetHealth_Call) Run added in v2.8.0

func (*Client_GetHealth_Call) RunAndReturn added in v2.8.0

func (_c *Client_GetHealth_Call) RunAndReturn(run func(context.Context) (map[string]int, error)) *Client_GetHealth_Call

type Client_GetLibrary_Call added in v2.8.0

type Client_GetLibrary_Call struct {
	*mock.Call
}

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

func (*Client_GetLibrary_Call) Return added in v2.8.0

func (*Client_GetLibrary_Call) Run added in v2.8.0

func (*Client_GetLibrary_Call) RunAndReturn added in v2.8.0

type Client_GetQueue_Call added in v2.8.0

type Client_GetQueue_Call struct {
	*mock.Call
}

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

func (*Client_GetQueue_Call) Return added in v2.8.0

func (*Client_GetQueue_Call) Run added in v2.8.0

func (_c *Client_GetQueue_Call) Run(run func(_a0 context.Context)) *Client_GetQueue_Call

func (*Client_GetQueue_Call) RunAndReturn added in v2.8.0

type Client_GetVersion_Call added in v2.8.0

type Client_GetVersion_Call struct {
	*mock.Call
}

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

func (*Client_GetVersion_Call) Return added in v2.8.0

func (*Client_GetVersion_Call) Run added in v2.8.0

func (*Client_GetVersion_Call) RunAndReturn added in v2.8.0

func (_c *Client_GetVersion_Call) RunAndReturn(run func(context.Context) (string, error)) *Client_GetVersion_Call

Jump to

Keyboard shortcuts

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