mocks

package
v0.0.0-...-d7d6a54 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 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 (*Client) GetMovie

func (_m *Client) GetMovie(id int) (*client.Movie, error)

GetMovie provides a mock function with given fields: id

func (*Client) GetTvShow

func (_m *Client) GetTvShow(id int) (*client.TvShow, error)

GetTvShow provides a mock function with given fields: id

func (*Client) SearchMovie

func (_m *Client) SearchMovie(name string) ([]*client.Movie, error)

SearchMovie provides a mock function with given fields: name

func (*Client) SearchTvShow

func (_m *Client) SearchTvShow(name string) ([]*client.TvShow, error)

SearchTvShow provides a mock function with given fields: name

type Prompt

type Prompt struct {
	mock.Mock
}

Prompt is an autogenerated mock type for the Prompt type

func (*Prompt) Input

func (_m *Prompt) Input(label string) (string, error)

Input provides a mock function with given fields: label

func (*Prompt) MultiSelect

func (_m *Prompt) MultiSelect(label string, options []string) ([]int, error)

MultiSelect provides a mock function with given fields: label, options

func (*Prompt) Select

func (_m *Prompt) Select(label string, options []string) (int, error)

Select provides a mock function with given fields: label, options

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func (*Store) All

func (_m *Store) All() ([]*store.Item, error)

All provides a mock function with given fields:

func (*Store) Close

func (_m *Store) Close() error

Close provides a mock function with given fields:

func (*Store) Create

func (_m *Store) Create(item *store.Item) error

Create provides a mock function with given fields: item

func (*Store) Delete

func (_m *Store) Delete(id uint) error

Delete provides a mock function with given fields: id

func (*Store) Get

func (_m *Store) Get(id uint) (*store.Item, error)

Get provides a mock function with given fields: id

Jump to

Keyboard shortcuts

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