mocks

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func NewReader

func NewReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *Reader

NewReader creates a new instance of Reader. 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 (*Reader) EXPECT added in v0.5.0

func (_m *Reader) EXPECT() *Reader_Expecter

func (*Reader) GetWatchlist added in v0.5.0

func (_m *Reader) GetWatchlist(listID string) (imdb.Watchlist, error)

GetWatchlist provides a mock function with given fields: listID

type Reader_Expecter added in v0.5.0

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

func (*Reader_Expecter) GetWatchlist added in v0.6.0

func (_e *Reader_Expecter) GetWatchlist(listID interface{}) *Reader_GetWatchlist_Call

GetWatchlist is a helper method to define mock.On call

  • listID string

type Reader_GetWatchlist_Call added in v0.6.0

type Reader_GetWatchlist_Call struct {
	*mock.Call
}

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

func (*Reader_GetWatchlist_Call) Return added in v0.6.0

func (*Reader_GetWatchlist_Call) Run added in v0.6.0

func (_c *Reader_GetWatchlist_Call) Run(run func(listID string)) *Reader_GetWatchlist_Call

func (*Reader_GetWatchlist_Call) RunAndReturn added in v0.6.0

Jump to

Keyboard shortcuts

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