mock_spotify

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock_spotify is a generated GoMock package.

Package mock_spotify is a generated GoMock package.

Package mock_spotify is a generated GoMock package.

Package mock_spotify is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuth

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

MockAuth is a mock of Auth interface.

func NewMockAuth

func NewMockAuth(ctrl *gomock.Controller) *MockAuth

NewMockAuth creates a new mock instance.

func (*MockAuth) EXPECT

func (m *MockAuth) EXPECT() *MockAuthMockRecorder

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

func (*MockAuth) Exchange

func (m *MockAuth) Exchange(ctx context.Context, code string) (*oauth2.Token, error)

Exchange mocks base method.

func (*MockAuth) GetAuthURL

func (m *MockAuth) GetAuthURL(state string) string

GetAuthURL mocks base method.

func (*MockAuth) Refresh

func (m *MockAuth) Refresh(ctx context.Context, token *oauth2.Token) (*oauth2.Token, error)

Refresh mocks base method.

type MockAuthMockRecorder

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

MockAuthMockRecorder is the mock recorder for MockAuth.

func (*MockAuthMockRecorder) Exchange

func (mr *MockAuthMockRecorder) Exchange(ctx, code interface{}) *gomock.Call

Exchange indicates an expected call of Exchange.

func (*MockAuthMockRecorder) GetAuthURL

func (mr *MockAuthMockRecorder) GetAuthURL(state interface{}) *gomock.Call

GetAuthURL indicates an expected call of GetAuthURL.

func (*MockAuthMockRecorder) Refresh

func (mr *MockAuthMockRecorder) Refresh(ctx, token interface{}) *gomock.Call

Refresh indicates an expected call of Refresh.

type MockPlayer

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

MockPlayer is a mock of Player interface.

func NewMockPlayer

func NewMockPlayer(ctrl *gomock.Controller) *MockPlayer

NewMockPlayer creates a new mock instance.

func (*MockPlayer) CurrentlyPlaying

func (m *MockPlayer) CurrentlyPlaying(ctx context.Context) (*entity.CurrentPlayingInfo, error)

CurrentlyPlaying mocks base method.

func (*MockPlayer) DeleteAllTracksInQueue added in v1.2.0

func (m *MockPlayer) DeleteAllTracksInQueue(ctx context.Context, deviceID, trackURI string) error

DeleteAllTracksInQueue mocks base method.

func (*MockPlayer) EXPECT

func (m *MockPlayer) EXPECT() *MockPlayerMockRecorder

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

func (*MockPlayer) Enqueue

func (m *MockPlayer) Enqueue(ctx context.Context, trackURI, deviceID string) error

Enqueue mocks base method.

func (*MockPlayer) GoNextTrack added in v1.2.0

func (m *MockPlayer) GoNextTrack(ctx context.Context, deviceID string) error

GoNextTrack mocks base method.

func (*MockPlayer) Pause

func (m *MockPlayer) Pause(ctx context.Context, deviceID string) error

Pause mocks base method.

func (*MockPlayer) PlayWithTracksAndPosition added in v1.1.0

func (m *MockPlayer) PlayWithTracksAndPosition(ctx context.Context, deviceID string, trackURIs []string, position time.Duration) error

PlayWithTracksAndPosition mocks base method.

func (*MockPlayer) SetRepeatMode

func (m *MockPlayer) SetRepeatMode(ctx context.Context, on bool, deviceID string) error

SetRepeatMode mocks base method.

func (*MockPlayer) SetShuffleMode

func (m *MockPlayer) SetShuffleMode(ctx context.Context, on bool, deviceID string) error

SetShuffleMode mocks base method.

type MockPlayerMockRecorder

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

MockPlayerMockRecorder is the mock recorder for MockPlayer.

func (*MockPlayerMockRecorder) CurrentlyPlaying

func (mr *MockPlayerMockRecorder) CurrentlyPlaying(ctx interface{}) *gomock.Call

CurrentlyPlaying indicates an expected call of CurrentlyPlaying.

func (*MockPlayerMockRecorder) DeleteAllTracksInQueue added in v1.2.0

func (mr *MockPlayerMockRecorder) DeleteAllTracksInQueue(ctx, deviceID, trackURI interface{}) *gomock.Call

DeleteAllTracksInQueue indicates an expected call of DeleteAllTracksInQueue.

func (*MockPlayerMockRecorder) Enqueue

func (mr *MockPlayerMockRecorder) Enqueue(ctx, trackURI, deviceID interface{}) *gomock.Call

Enqueue indicates an expected call of Enqueue.

func (*MockPlayerMockRecorder) GoNextTrack added in v1.2.0

func (mr *MockPlayerMockRecorder) GoNextTrack(ctx, deviceID interface{}) *gomock.Call

GoNextTrack indicates an expected call of GoNextTrack.

func (*MockPlayerMockRecorder) Pause

func (mr *MockPlayerMockRecorder) Pause(ctx, deviceID interface{}) *gomock.Call

Pause indicates an expected call of Pause.

func (*MockPlayerMockRecorder) PlayWithTracksAndPosition added in v1.1.0

func (mr *MockPlayerMockRecorder) PlayWithTracksAndPosition(ctx, deviceID, trackURIs, position interface{}) *gomock.Call

PlayWithTracksAndPosition indicates an expected call of PlayWithTracksAndPosition.

func (*MockPlayerMockRecorder) SetRepeatMode

func (mr *MockPlayerMockRecorder) SetRepeatMode(ctx, on, deviceID interface{}) *gomock.Call

SetRepeatMode indicates an expected call of SetRepeatMode.

func (*MockPlayerMockRecorder) SetShuffleMode

func (mr *MockPlayerMockRecorder) SetShuffleMode(ctx, on, deviceID interface{}) *gomock.Call

SetShuffleMode indicates an expected call of SetShuffleMode.

type MockTrackClient

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

MockTrackClient is a mock of TrackClient interface.

func NewMockTrackClient

func NewMockTrackClient(ctrl *gomock.Controller) *MockTrackClient

NewMockTrackClient creates a new mock instance.

func (*MockTrackClient) EXPECT

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

func (*MockTrackClient) GetTracksFromURI

func (m *MockTrackClient) GetTracksFromURI(ctx context.Context, trackURIs []string) ([]*entity.Track, error)

GetTracksFromURI mocks base method.

func (*MockTrackClient) Search

func (m *MockTrackClient) Search(ctx context.Context, q string) ([]*entity.Track, error)

Search mocks base method.

type MockTrackClientMockRecorder

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

MockTrackClientMockRecorder is the mock recorder for MockTrackClient.

func (*MockTrackClientMockRecorder) GetTracksFromURI

func (mr *MockTrackClientMockRecorder) GetTracksFromURI(ctx, trackURIs interface{}) *gomock.Call

GetTracksFromURI indicates an expected call of GetTracksFromURI.

func (*MockTrackClientMockRecorder) Search

func (mr *MockTrackClientMockRecorder) Search(ctx, q interface{}) *gomock.Call

Search indicates an expected call of Search.

type MockUser

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

MockUser is a mock of User interface.

func NewMockUser

func NewMockUser(ctrl *gomock.Controller) *MockUser

NewMockUser creates a new mock instance.

func (*MockUser) EXPECT

func (m *MockUser) EXPECT() *MockUserMockRecorder

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

func (*MockUser) GetActiveDevices

func (m *MockUser) GetActiveDevices(ctx context.Context) ([]*entity.Device, error)

GetActiveDevices mocks base method.

func (*MockUser) GetMe

func (m *MockUser) GetMe(ctx context.Context) (*entity.SpotifyUser, error)

GetMe mocks base method.

type MockUserMockRecorder

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

MockUserMockRecorder is the mock recorder for MockUser.

func (*MockUserMockRecorder) GetActiveDevices

func (mr *MockUserMockRecorder) GetActiveDevices(ctx interface{}) *gomock.Call

GetActiveDevices indicates an expected call of GetActiveDevices.

func (*MockUserMockRecorder) GetMe

func (mr *MockUserMockRecorder) GetMe(ctx interface{}) *gomock.Call

GetMe indicates an expected call of GetMe.

Jump to

Keyboard shortcuts

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