mock

package
v0.0.0-...-e0a24ef Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockApplication

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

MockApplication is a mock of Application interface.

func NewMockApplication

func NewMockApplication(ctrl *gomock.Controller) *MockApplication

NewMockApplication creates a new mock instance.

func (*MockApplication) DownloadPlaylist

func (m *MockApplication) DownloadPlaylist(arg0 string) error

DownloadPlaylist mocks base method.

func (*MockApplication) DownloadSingle

func (m *MockApplication) DownloadSingle(arg0 string) error

DownloadSingle mocks base method.

func (*MockApplication) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockApplicationMockRecorder

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

MockApplicationMockRecorder is the mock recorder for MockApplication.

func (*MockApplicationMockRecorder) DownloadPlaylist

func (mr *MockApplicationMockRecorder) DownloadPlaylist(arg0 interface{}) *gomock.Call

DownloadPlaylist indicates an expected call of DownloadPlaylist.

func (*MockApplicationMockRecorder) DownloadSingle

func (mr *MockApplicationMockRecorder) DownloadSingle(arg0 interface{}) *gomock.Call

DownloadSingle indicates an expected call of DownloadSingle.

type MockCommand

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

MockCommand is a mock of Command interface.

func NewMockCommand

func NewMockCommand(ctrl *gomock.Controller) *MockCommand

NewMockCommand creates a new mock instance.

func (*MockCommand) EXPECT

func (m *MockCommand) EXPECT() *MockCommandMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCommand) SetDir

func (m *MockCommand) SetDir(arg0 string)

SetDir mocks base method.

func (*MockCommand) Start

func (m *MockCommand) Start() error

Start mocks base method.

func (*MockCommand) StderrPipe

func (m *MockCommand) StderrPipe() (io.ReadCloser, error)

StderrPipe mocks base method.

func (*MockCommand) StdinPipe

func (m *MockCommand) StdinPipe() (io.WriteCloser, error)

StdinPipe mocks base method.

func (*MockCommand) StdoutPipe

func (m *MockCommand) StdoutPipe() (io.ReadCloser, error)

StdoutPipe mocks base method.

func (*MockCommand) Wait

func (m *MockCommand) Wait() (int, error)

Wait mocks base method.

type MockCommandMockRecorder

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

MockCommandMockRecorder is the mock recorder for MockCommand.

func (*MockCommandMockRecorder) SetDir

func (mr *MockCommandMockRecorder) SetDir(arg0 interface{}) *gomock.Call

SetDir indicates an expected call of SetDir.

func (*MockCommandMockRecorder) Start

func (mr *MockCommandMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockCommandMockRecorder) StderrPipe

func (mr *MockCommandMockRecorder) StderrPipe() *gomock.Call

StderrPipe indicates an expected call of StderrPipe.

func (*MockCommandMockRecorder) StdinPipe

func (mr *MockCommandMockRecorder) StdinPipe() *gomock.Call

StdinPipe indicates an expected call of StdinPipe.

func (*MockCommandMockRecorder) StdoutPipe

func (mr *MockCommandMockRecorder) StdoutPipe() *gomock.Call

StdoutPipe indicates an expected call of StdoutPipe.

func (*MockCommandMockRecorder) Wait

func (mr *MockCommandMockRecorder) Wait() *gomock.Call

Wait indicates an expected call of Wait.

type MockCommandProvider

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

MockCommandProvider is a mock of CommandProvider interface.

func NewMockCommandProvider

func NewMockCommandProvider(ctrl *gomock.Controller) *MockCommandProvider

NewMockCommandProvider creates a new mock instance.

func (*MockCommandProvider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCommandProvider) NewCommand

func (m *MockCommandProvider) NewCommand(arg0 string, arg1 ...string) command.Command

NewCommand mocks base method.

type MockCommandProviderMockRecorder

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

MockCommandProviderMockRecorder is the mock recorder for MockCommandProvider.

func (*MockCommandProviderMockRecorder) NewCommand

func (mr *MockCommandProviderMockRecorder) NewCommand(arg0 interface{}, arg1 ...interface{}) *gomock.Call

NewCommand indicates an expected call of NewCommand.

type MockDatabase

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

MockDatabase is a mock of Database interface.

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

NewMockDatabase creates a new mock instance.

func (*MockDatabase) BunDB

func (m *MockDatabase) BunDB() *bun.DB

BunDB mocks base method.

func (*MockDatabase) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDatabase) Insert

func (m *MockDatabase) Insert(arg0 *bun.InsertQuery) error

Insert mocks base method.

func (*MockDatabase) SelectDownload

func (m *MockDatabase) SelectDownload(arg0 *bun.SelectQuery) ([]db.Download, error)

SelectDownload mocks base method.

func (*MockDatabase) SelectUploader

func (m *MockDatabase) SelectUploader(arg0 *bun.SelectQuery) ([]db.Uploader, error)

SelectUploader mocks base method.

func (*MockDatabase) StoreMetadata

func (m *MockDatabase) StoreMetadata(arg0 string, arg1 []byte) error

StoreMetadata mocks base method.

type MockDatabaseMockRecorder

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

MockDatabaseMockRecorder is the mock recorder for MockDatabase.

func (*MockDatabaseMockRecorder) BunDB

func (mr *MockDatabaseMockRecorder) BunDB() *gomock.Call

BunDB indicates an expected call of BunDB.

func (*MockDatabaseMockRecorder) Insert

func (mr *MockDatabaseMockRecorder) Insert(arg0 interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockDatabaseMockRecorder) SelectDownload

func (mr *MockDatabaseMockRecorder) SelectDownload(arg0 interface{}) *gomock.Call

SelectDownload indicates an expected call of SelectDownload.

func (*MockDatabaseMockRecorder) SelectUploader

func (mr *MockDatabaseMockRecorder) SelectUploader(arg0 interface{}) *gomock.Call

SelectUploader indicates an expected call of SelectUploader.

func (*MockDatabaseMockRecorder) StoreMetadata

func (mr *MockDatabaseMockRecorder) StoreMetadata(arg0, arg1 interface{}) *gomock.Call

StoreMetadata indicates an expected call of StoreMetadata.

type MockJq

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

MockJq is a mock of Jq interface.

func NewMockJq

func NewMockJq(ctrl *gomock.Controller) *MockJq

NewMockJq creates a new mock instance.

func (*MockJq) EXPECT

func (m *MockJq) EXPECT() *MockJqMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockJq) Slurp

func (m *MockJq) Slurp(arg0 []byte) ([]byte, error)

Slurp mocks base method.

type MockJqMockRecorder

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

MockJqMockRecorder is the mock recorder for MockJq.

func (*MockJqMockRecorder) Slurp

func (mr *MockJqMockRecorder) Slurp(arg0 interface{}) *gomock.Call

Slurp indicates an expected call of Slurp.

type MockLoudnessScanner

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

MockLoudnessScanner is a mock of LoudnessScanner interface.

func NewMockLoudnessScanner

func NewMockLoudnessScanner(ctrl *gomock.Controller) *MockLoudnessScanner

NewMockLoudnessScanner creates a new mock instance.

func (*MockLoudnessScanner) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLoudnessScanner) Tag

func (m *MockLoudnessScanner) Tag(arg0 string) error

Tag mocks base method.

type MockLoudnessScannerMockRecorder

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

MockLoudnessScannerMockRecorder is the mock recorder for MockLoudnessScanner.

func (*MockLoudnessScannerMockRecorder) Tag

func (mr *MockLoudnessScannerMockRecorder) Tag(arg0 interface{}) *gomock.Call

Tag indicates an expected call of Tag.

type MockYoutubeDL

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

MockYoutubeDL is a mock of YoutubeDL interface.

func NewMockYoutubeDL

func NewMockYoutubeDL(ctrl *gomock.Controller) *MockYoutubeDL

NewMockYoutubeDL creates a new mock instance.

func (*MockYoutubeDL) Download

func (m *MockYoutubeDL) Download(arg0 string, arg1 ydl.VideoMetadata) (ydl.DownloadResult, error)

Download mocks base method.

func (*MockYoutubeDL) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockYoutubeDL) VideoMetadata

func (m *MockYoutubeDL) VideoMetadata(arg0 string) ([]byte, error)

VideoMetadata mocks base method.

type MockYoutubeDLMockRecorder

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

MockYoutubeDLMockRecorder is the mock recorder for MockYoutubeDL.

func (*MockYoutubeDLMockRecorder) Download

func (mr *MockYoutubeDLMockRecorder) Download(arg0, arg1 interface{}) *gomock.Call

Download indicates an expected call of Download.

func (*MockYoutubeDLMockRecorder) VideoMetadata

func (mr *MockYoutubeDLMockRecorder) VideoMetadata(arg0 interface{}) *gomock.Call

VideoMetadata indicates an expected call of VideoMetadata.

Jump to

Keyboard shortcuts

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