Documentation ¶
Index ¶
- type Client
- func (_m *Client) EXPECT() *Client_Expecter
- func (_m *Client) FindByID(_a0 context.Context, _a1 tmdb.FindByIDRequest) (tmdb.FindByIDResponse, error)
- func (_m *Client) MovieDetails(_a0 context.Context, _a1 tmdb.MovieDetailsRequest) (tmdb.MovieDetailsResponse, error)
- func (_m *Client) SearchMovie(_a0 context.Context, _a1 tmdb.SearchMovieRequest) (tmdb.SearchMovieResponse, error)
- func (_m *Client) SearchTv(_a0 context.Context, _a1 tmdb.SearchTvRequest) (tmdb.SearchTvResponse, error)
- func (_m *Client) TvDetails(_a0 context.Context, _a1 tmdb.TvDetailsRequest) (tmdb.TvDetailsResponse, error)
- func (_m *Client) ValidateApiKey(_a0 context.Context) error
- type Client_Expecter
- func (_e *Client_Expecter) FindByID(_a0 interface{}, _a1 interface{}) *Client_FindByID_Call
- func (_e *Client_Expecter) MovieDetails(_a0 interface{}, _a1 interface{}) *Client_MovieDetails_Call
- func (_e *Client_Expecter) SearchMovie(_a0 interface{}, _a1 interface{}) *Client_SearchMovie_Call
- func (_e *Client_Expecter) SearchTv(_a0 interface{}, _a1 interface{}) *Client_SearchTv_Call
- func (_e *Client_Expecter) TvDetails(_a0 interface{}, _a1 interface{}) *Client_TvDetails_Call
- func (_e *Client_Expecter) ValidateApiKey(_a0 interface{}) *Client_ValidateApiKey_Call
- type Client_FindByID_Call
- func (_c *Client_FindByID_Call) Return(_a0 tmdb.FindByIDResponse, _a1 error) *Client_FindByID_Call
- func (_c *Client_FindByID_Call) Run(run func(_a0 context.Context, _a1 tmdb.FindByIDRequest)) *Client_FindByID_Call
- func (_c *Client_FindByID_Call) RunAndReturn(run func(context.Context, tmdb.FindByIDRequest) (tmdb.FindByIDResponse, error)) *Client_FindByID_Call
- type Client_MovieDetails_Call
- func (_c *Client_MovieDetails_Call) Return(_a0 tmdb.MovieDetailsResponse, _a1 error) *Client_MovieDetails_Call
- func (_c *Client_MovieDetails_Call) Run(run func(_a0 context.Context, _a1 tmdb.MovieDetailsRequest)) *Client_MovieDetails_Call
- func (_c *Client_MovieDetails_Call) RunAndReturn(...) *Client_MovieDetails_Call
- type Client_SearchMovie_Call
- func (_c *Client_SearchMovie_Call) Return(_a0 tmdb.SearchMovieResponse, _a1 error) *Client_SearchMovie_Call
- func (_c *Client_SearchMovie_Call) Run(run func(_a0 context.Context, _a1 tmdb.SearchMovieRequest)) *Client_SearchMovie_Call
- func (_c *Client_SearchMovie_Call) RunAndReturn(...) *Client_SearchMovie_Call
- type Client_SearchTv_Call
- func (_c *Client_SearchTv_Call) Return(_a0 tmdb.SearchTvResponse, _a1 error) *Client_SearchTv_Call
- func (_c *Client_SearchTv_Call) Run(run func(_a0 context.Context, _a1 tmdb.SearchTvRequest)) *Client_SearchTv_Call
- func (_c *Client_SearchTv_Call) RunAndReturn(run func(context.Context, tmdb.SearchTvRequest) (tmdb.SearchTvResponse, error)) *Client_SearchTv_Call
- type Client_TvDetails_Call
- type Client_ValidateApiKey_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
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 ¶
func (_m *Client) FindByID(_a0 context.Context, _a1 tmdb.FindByIDRequest) (tmdb.FindByIDResponse, error)
FindByID provides a mock function with given fields: _a0, _a1
func (*Client) MovieDetails ¶
func (_m *Client) MovieDetails(_a0 context.Context, _a1 tmdb.MovieDetailsRequest) (tmdb.MovieDetailsResponse, error)
MovieDetails provides a mock function with given fields: _a0, _a1
func (*Client) SearchMovie ¶
func (_m *Client) SearchMovie(_a0 context.Context, _a1 tmdb.SearchMovieRequest) (tmdb.SearchMovieResponse, error)
SearchMovie provides a mock function with given fields: _a0, _a1
func (*Client) SearchTv ¶
func (_m *Client) SearchTv(_a0 context.Context, _a1 tmdb.SearchTvRequest) (tmdb.SearchTvResponse, error)
SearchTv provides a mock function with given fields: _a0, _a1
func (*Client) TvDetails ¶
func (_m *Client) TvDetails(_a0 context.Context, _a1 tmdb.TvDetailsRequest) (tmdb.TvDetailsResponse, error)
TvDetails provides a mock function with given fields: _a0, _a1
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 ¶
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 (_c *Client_FindByID_Call) Return(_a0 tmdb.FindByIDResponse, _a1 error) *Client_FindByID_Call
func (*Client_FindByID_Call) Run ¶
func (_c *Client_FindByID_Call) Run(run func(_a0 context.Context, _a1 tmdb.FindByIDRequest)) *Client_FindByID_Call
func (*Client_FindByID_Call) RunAndReturn ¶
func (_c *Client_FindByID_Call) RunAndReturn(run func(context.Context, tmdb.FindByIDRequest) (tmdb.FindByIDResponse, error)) *Client_FindByID_Call
type Client_MovieDetails_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 (_c *Client_MovieDetails_Call) Return(_a0 tmdb.MovieDetailsResponse, _a1 error) *Client_MovieDetails_Call
func (*Client_MovieDetails_Call) Run ¶
func (_c *Client_MovieDetails_Call) Run(run func(_a0 context.Context, _a1 tmdb.MovieDetailsRequest)) *Client_MovieDetails_Call
func (*Client_MovieDetails_Call) RunAndReturn ¶
func (_c *Client_MovieDetails_Call) RunAndReturn(run func(context.Context, tmdb.MovieDetailsRequest) (tmdb.MovieDetailsResponse, error)) *Client_MovieDetails_Call
type Client_SearchMovie_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 (_c *Client_SearchMovie_Call) Return(_a0 tmdb.SearchMovieResponse, _a1 error) *Client_SearchMovie_Call
func (*Client_SearchMovie_Call) Run ¶
func (_c *Client_SearchMovie_Call) Run(run func(_a0 context.Context, _a1 tmdb.SearchMovieRequest)) *Client_SearchMovie_Call
func (*Client_SearchMovie_Call) RunAndReturn ¶
func (_c *Client_SearchMovie_Call) RunAndReturn(run func(context.Context, tmdb.SearchMovieRequest) (tmdb.SearchMovieResponse, error)) *Client_SearchMovie_Call
type Client_SearchTv_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 (_c *Client_SearchTv_Call) Return(_a0 tmdb.SearchTvResponse, _a1 error) *Client_SearchTv_Call
func (*Client_SearchTv_Call) Run ¶
func (_c *Client_SearchTv_Call) Run(run func(_a0 context.Context, _a1 tmdb.SearchTvRequest)) *Client_SearchTv_Call
func (*Client_SearchTv_Call) RunAndReturn ¶
func (_c *Client_SearchTv_Call) RunAndReturn(run func(context.Context, tmdb.SearchTvRequest) (tmdb.SearchTvResponse, error)) *Client_SearchTv_Call
type Client_TvDetails_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 (_c *Client_TvDetails_Call) Return(_a0 tmdb.TvDetailsResponse, _a1 error) *Client_TvDetails_Call
func (*Client_TvDetails_Call) Run ¶
func (_c *Client_TvDetails_Call) Run(run func(_a0 context.Context, _a1 tmdb.TvDetailsRequest)) *Client_TvDetails_Call
func (*Client_TvDetails_Call) RunAndReturn ¶
func (_c *Client_TvDetails_Call) RunAndReturn(run func(context.Context, tmdb.TvDetailsRequest) (tmdb.TvDetailsResponse, error)) *Client_TvDetails_Call
type Client_ValidateApiKey_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 (_c *Client_ValidateApiKey_Call) Return(_a0 error) *Client_ValidateApiKey_Call
func (*Client_ValidateApiKey_Call) Run ¶
func (_c *Client_ValidateApiKey_Call) Run(run func(_a0 context.Context)) *Client_ValidateApiKey_Call
func (*Client_ValidateApiKey_Call) RunAndReturn ¶
func (_c *Client_ValidateApiKey_Call) RunAndReturn(run func(context.Context) error) *Client_ValidateApiKey_Call