tmdb_mocks

package
v0.10.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 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

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) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) FindByID

FindByID provides a mock function with given fields: _a0, _a1

func (*Client) MovieDetails

MovieDetails provides a mock function with given fields: _a0, _a1

func (*Client) SearchMovie

SearchMovie provides a mock function with given fields: _a0, _a1

func (*Client) SearchTv

SearchTv provides a mock function with given fields: _a0, _a1

func (*Client) TvDetails

TvDetails provides a mock function with given fields: _a0, _a1

func (*Client) ValidateApiKey

func (_m *Client) ValidateApiKey(_a0 context.Context) error

ValidateApiKey provides a mock function with given fields: _a0

type Client_Expecter

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

func (*Client_Expecter) FindByID

func (_e *Client_Expecter) FindByID(_a0 interface{}, _a1 interface{}) *Client_FindByID_Call

FindByID is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 tmdb.FindByIDRequest

func (*Client_Expecter) MovieDetails

func (_e *Client_Expecter) MovieDetails(_a0 interface{}, _a1 interface{}) *Client_MovieDetails_Call

MovieDetails is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 tmdb.MovieDetailsRequest

func (*Client_Expecter) SearchMovie

func (_e *Client_Expecter) SearchMovie(_a0 interface{}, _a1 interface{}) *Client_SearchMovie_Call

SearchMovie is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 tmdb.SearchMovieRequest

func (*Client_Expecter) SearchTv

func (_e *Client_Expecter) SearchTv(_a0 interface{}, _a1 interface{}) *Client_SearchTv_Call

SearchTv is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 tmdb.SearchTvRequest

func (*Client_Expecter) TvDetails

func (_e *Client_Expecter) TvDetails(_a0 interface{}, _a1 interface{}) *Client_TvDetails_Call

TvDetails is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 tmdb.TvDetailsRequest

func (*Client_Expecter) ValidateApiKey

func (_e *Client_Expecter) ValidateApiKey(_a0 interface{}) *Client_ValidateApiKey_Call

ValidateApiKey is a helper method to define mock.On call

  • _a0 context.Context

type Client_FindByID_Call

type Client_FindByID_Call struct {
	*mock.Call
}

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

func (*Client_FindByID_Call) Return

func (*Client_FindByID_Call) Run

func (*Client_FindByID_Call) RunAndReturn

type Client_MovieDetails_Call

type Client_MovieDetails_Call struct {
	*mock.Call
}

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

func (*Client_MovieDetails_Call) Return

func (*Client_MovieDetails_Call) Run

type Client_SearchMovie_Call

type Client_SearchMovie_Call struct {
	*mock.Call
}

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

func (*Client_SearchMovie_Call) Return

func (*Client_SearchMovie_Call) Run

func (*Client_SearchMovie_Call) RunAndReturn

type Client_SearchTv_Call

type Client_SearchTv_Call struct {
	*mock.Call
}

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

func (*Client_SearchTv_Call) Return

func (*Client_SearchTv_Call) Run

func (*Client_SearchTv_Call) RunAndReturn

type Client_TvDetails_Call

type Client_TvDetails_Call struct {
	*mock.Call
}

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

func (*Client_TvDetails_Call) Return

func (*Client_TvDetails_Call) Run

func (*Client_TvDetails_Call) RunAndReturn

type Client_ValidateApiKey_Call

type Client_ValidateApiKey_Call struct {
	*mock.Call
}

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

func (*Client_ValidateApiKey_Call) Return

func (*Client_ValidateApiKey_Call) Run

func (*Client_ValidateApiKey_Call) RunAndReturn

Jump to

Keyboard shortcuts

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