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

type Getter struct {
	mock.Mock
}

Getter is an autogenerated mock type for the Getter type

func NewGetter added in v2.8.0

func NewGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Getter

NewGetter creates a new instance of Getter. 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 (*Getter) EXPECT added in v2.8.0

func (_m *Getter) EXPECT() *Getter_Expecter

func (*Getter) GetEpisodes added in v2.8.0

func (_m *Getter) GetEpisodes(ctx context.Context, key string) ([]plex.Episode, error)

GetEpisodes provides a mock function with given fields: ctx, key

func (*Getter) GetIdentity added in v2.8.0

func (_m *Getter) GetIdentity(_a0 context.Context) (plex.Identity, error)

GetIdentity provides a mock function with given fields: _a0

func (*Getter) GetLibraries added in v2.8.0

func (_m *Getter) GetLibraries(ctx context.Context) ([]plex.Library, error)

GetLibraries provides a mock function with given fields: ctx

func (*Getter) GetMovies added in v2.8.0

func (_m *Getter) GetMovies(ctx context.Context, key string) ([]plex.Movie, error)

GetMovies provides a mock function with given fields: ctx, key

func (*Getter) GetSeasons added in v2.8.0

func (_m *Getter) GetSeasons(ctx context.Context, key string) ([]plex.Season, error)

GetSeasons provides a mock function with given fields: ctx, key

func (*Getter) GetSessions added in v2.8.0

func (_m *Getter) GetSessions(_a0 context.Context) ([]plex.Session, error)

GetSessions provides a mock function with given fields: _a0

func (*Getter) GetShows added in v2.8.0

func (_m *Getter) GetShows(ctx context.Context, key string) ([]plex.Show, error)

GetShows provides a mock function with given fields: ctx, key

type Getter_Expecter added in v2.8.0

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

func (*Getter_Expecter) GetEpisodes added in v2.8.0

func (_e *Getter_Expecter) GetEpisodes(ctx interface{}, key interface{}) *Getter_GetEpisodes_Call

GetEpisodes is a helper method to define mock.On call

  • ctx context.Context
  • key string

func (*Getter_Expecter) GetIdentity added in v2.8.0

func (_e *Getter_Expecter) GetIdentity(_a0 interface{}) *Getter_GetIdentity_Call

GetIdentity is a helper method to define mock.On call

  • _a0 context.Context

func (*Getter_Expecter) GetLibraries added in v2.8.0

func (_e *Getter_Expecter) GetLibraries(ctx interface{}) *Getter_GetLibraries_Call

GetLibraries is a helper method to define mock.On call

  • ctx context.Context

func (*Getter_Expecter) GetMovies added in v2.8.0

func (_e *Getter_Expecter) GetMovies(ctx interface{}, key interface{}) *Getter_GetMovies_Call

GetMovies is a helper method to define mock.On call

  • ctx context.Context
  • key string

func (*Getter_Expecter) GetSeasons added in v2.8.0

func (_e *Getter_Expecter) GetSeasons(ctx interface{}, key interface{}) *Getter_GetSeasons_Call

GetSeasons is a helper method to define mock.On call

  • ctx context.Context
  • key string

func (*Getter_Expecter) GetSessions added in v2.8.0

func (_e *Getter_Expecter) GetSessions(_a0 interface{}) *Getter_GetSessions_Call

GetSessions is a helper method to define mock.On call

  • _a0 context.Context

func (*Getter_Expecter) GetShows added in v2.8.0

func (_e *Getter_Expecter) GetShows(ctx interface{}, key interface{}) *Getter_GetShows_Call

GetShows is a helper method to define mock.On call

  • ctx context.Context
  • key string

type Getter_GetEpisodes_Call added in v2.8.0

type Getter_GetEpisodes_Call struct {
	*mock.Call
}

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

func (*Getter_GetEpisodes_Call) Return added in v2.8.0

func (*Getter_GetEpisodes_Call) Run added in v2.8.0

func (*Getter_GetEpisodes_Call) RunAndReturn added in v2.8.0

type Getter_GetIdentity_Call added in v2.8.0

type Getter_GetIdentity_Call struct {
	*mock.Call
}

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

func (*Getter_GetIdentity_Call) Return added in v2.8.0

func (*Getter_GetIdentity_Call) Run added in v2.8.0

func (*Getter_GetIdentity_Call) RunAndReturn added in v2.8.0

type Getter_GetLibraries_Call added in v2.8.0

type Getter_GetLibraries_Call struct {
	*mock.Call
}

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

func (*Getter_GetLibraries_Call) Return added in v2.8.0

func (*Getter_GetLibraries_Call) Run added in v2.8.0

func (*Getter_GetLibraries_Call) RunAndReturn added in v2.8.0

type Getter_GetMovies_Call added in v2.8.0

type Getter_GetMovies_Call struct {
	*mock.Call
}

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

func (*Getter_GetMovies_Call) Return added in v2.8.0

func (*Getter_GetMovies_Call) Run added in v2.8.0

func (_c *Getter_GetMovies_Call) Run(run func(ctx context.Context, key string)) *Getter_GetMovies_Call

func (*Getter_GetMovies_Call) RunAndReturn added in v2.8.0

func (_c *Getter_GetMovies_Call) RunAndReturn(run func(context.Context, string) ([]plex.Movie, error)) *Getter_GetMovies_Call

type Getter_GetSeasons_Call added in v2.8.0

type Getter_GetSeasons_Call struct {
	*mock.Call
}

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

func (*Getter_GetSeasons_Call) Return added in v2.8.0

func (*Getter_GetSeasons_Call) Run added in v2.8.0

func (*Getter_GetSeasons_Call) RunAndReturn added in v2.8.0

type Getter_GetSessions_Call added in v2.8.0

type Getter_GetSessions_Call struct {
	*mock.Call
}

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

func (*Getter_GetSessions_Call) Return added in v2.8.0

func (*Getter_GetSessions_Call) Run added in v2.8.0

func (*Getter_GetSessions_Call) RunAndReturn added in v2.8.0

type Getter_GetShows_Call added in v2.8.0

type Getter_GetShows_Call struct {
	*mock.Call
}

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

func (*Getter_GetShows_Call) Return added in v2.8.0

func (_c *Getter_GetShows_Call) Return(_a0 []plex.Show, _a1 error) *Getter_GetShows_Call

func (*Getter_GetShows_Call) Run added in v2.8.0

func (_c *Getter_GetShows_Call) Run(run func(ctx context.Context, key string)) *Getter_GetShows_Call

func (*Getter_GetShows_Call) RunAndReturn added in v2.8.0

func (_c *Getter_GetShows_Call) RunAndReturn(run func(context.Context, string) ([]plex.Show, error)) *Getter_GetShows_Call

type IPLocator

type IPLocator struct {
	mock.Mock
}

IPLocator is an autogenerated mock type for the IPLocator type

func NewIPLocator

func NewIPLocator(t interface {
	mock.TestingT
	Cleanup(func())
}) *IPLocator

NewIPLocator creates a new instance of IPLocator. 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 (*IPLocator) EXPECT added in v2.7.0

func (_m *IPLocator) EXPECT() *IPLocator_Expecter

func (*IPLocator) Locate

func (_m *IPLocator) Locate(_a0 string) (float64, float64, error)

Locate provides a mock function with given fields: _a0

type IPLocator_Expecter added in v2.7.0

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

func (*IPLocator_Expecter) Locate added in v2.7.0

func (_e *IPLocator_Expecter) Locate(_a0 interface{}) *IPLocator_Locate_Call

Locate is a helper method to define mock.On call

  • _a0 string

type IPLocator_Locate_Call added in v2.7.0

type IPLocator_Locate_Call struct {
	*mock.Call
}

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

func (*IPLocator_Locate_Call) Return added in v2.7.0

func (*IPLocator_Locate_Call) Run added in v2.7.0

func (_c *IPLocator_Locate_Call) Run(run func(_a0 string)) *IPLocator_Locate_Call

func (*IPLocator_Locate_Call) RunAndReturn added in v2.7.0

func (_c *IPLocator_Locate_Call) RunAndReturn(run func(string) (float64, float64, error)) *IPLocator_Locate_Call

Jump to

Keyboard shortcuts

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