mocks

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	mock.Mock
}

App is an autogenerated mock type for the App type

func NewApp

func NewApp(t mockConstructorTestingTNewApp) *App

NewApp creates a new instance of App. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*App) AddMessageFunc

func (_m *App) AddMessageFunc(f application.CastMessageFunc)

AddMessageFunc provides a mock function with given fields: f

func (*App) Close

func (_m *App) Close(stopMedia bool) error

Close provides a mock function with given fields: stopMedia

func (*App) Load

func (_m *App) Load(filenameOrUrl string, startTime int, contentType string, transcode bool, detach bool, forceDetach bool) error

Load provides a mock function with given fields: filenameOrUrl, contentType, transcode, detach, forceDetach

func (*App) LoadApp

func (_m *App) LoadApp(appID string, contentID string) error

LoadApp provides a mock function with given fields: appID, contentID

func (*App) Next

func (_m *App) Next() error

Next provides a mock function with given fields:

func (*App) Pause

func (_m *App) Pause() error

Pause provides a mock function with given fields:

func (*App) PlayableMediaType

func (_m *App) PlayableMediaType(filename string) bool

PlayableMediaType provides a mock function with given fields: filename

func (*App) PlayedItems

func (_m *App) PlayedItems() map[string]application.PlayedItem

PlayedItems provides a mock function with given fields:

func (*App) Previous

func (_m *App) Previous() error

Previous provides a mock function with given fields:

func (*App) QueueLoad

func (_m *App) QueueLoad(filenames []string, contentType string, transcode bool) error

QueueLoad provides a mock function with given fields: filenames, contentType, transcode

func (*App) Seek

func (_m *App) Seek(value int) error

Seek provides a mock function with given fields: value

func (*App) SeekFromStart

func (_m *App) SeekFromStart(value int) error

SeekFromStart provides a mock function with given fields: value

func (*App) SeekToTime

func (_m *App) SeekToTime(value float32) error

SeekToTime provides a mock function with given fields: value

func (*App) SetCacheDisabled

func (_m *App) SetCacheDisabled(_a0 bool)

SetCacheDisabled provides a mock function with given fields: _a0

func (*App) SetConn

func (_m *App) SetConn(conn cast.Conn)

SetConn provides a mock function with given fields: conn

func (*App) SetConnectionRetries

func (_m *App) SetConnectionRetries(_a0 int)

SetConnectionRetries provides a mock function with given fields: _a0

func (*App) SetDebug

func (_m *App) SetDebug(_a0 bool)

SetDebug provides a mock function with given fields: _a0

func (*App) SetIface

func (_m *App) SetIface(_a0 *net.Interface)

SetIface provides a mock function with given fields: _a0

func (*App) SetMuted

func (_m *App) SetMuted(value bool) error

SetMuted provides a mock function with given fields: value

func (*App) SetServerPort

func (_m *App) SetServerPort(_a0 int)

SetServerPort provides a mock function with given fields: _a0

func (*App) SetVolume

func (_m *App) SetVolume(value float32) error

SetVolume provides a mock function with given fields: value

func (*App) Skipad

func (_m *App) Skipad() error

Skipad provides a mock function with given fields:

func (*App) Slideshow

func (_m *App) Slideshow(filenames []string, duration int, repeat bool) error

Slideshow provides a mock function with given fields: filenames, duration, repeat

func (*App) Start

func (_m *App) Start(addr string, port int) error

Start provides a mock function with given fields: addr, port

func (*App) Status

func (_m *App) Status() (*cast.Application, *cast.Media, *cast.Volume)

Status provides a mock function with given fields:

func (*App) Stop

func (_m *App) Stop() error

Stop provides a mock function with given fields:

func (*App) StopMedia

func (_m *App) StopMedia() error

StopMedia provides a mock function with given fields:

func (*App) Transcode

func (_m *App) Transcode(contentType string, command string, args ...string) error

Transcode provides a mock function with given fields: contentType, command, args

func (*App) Unpause

func (_m *App) Unpause() error

Unpause provides a mock function with given fields:

func (*App) Update

func (_m *App) Update() error

Update provides a mock function with given fields:

type ApplicationOption

type ApplicationOption struct {
	mock.Mock
}

ApplicationOption is an autogenerated mock type for the ApplicationOption type

func NewApplicationOption

func NewApplicationOption(t mockConstructorTestingTNewApplicationOption) *ApplicationOption

NewApplicationOption creates a new instance of ApplicationOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ApplicationOption) Execute

func (_m *ApplicationOption) Execute(_a0 *application.Application)

Execute provides a mock function with given fields: _a0

type CastMessageFunc

type CastMessageFunc struct {
	mock.Mock
}

CastMessageFunc is an autogenerated mock type for the CastMessageFunc type

func NewCastMessageFunc

func NewCastMessageFunc(t mockConstructorTestingTNewCastMessageFunc) *CastMessageFunc

NewCastMessageFunc creates a new instance of CastMessageFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CastMessageFunc) Execute

func (_m *CastMessageFunc) Execute(_a0 *api.CastMessage)

Execute provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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