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 ¶
- type MockAuth
- type MockAuthMockRecorder
- type MockPlayer
- func (m *MockPlayer) CurrentlyPlaying(ctx context.Context) (*entity.CurrentPlayingInfo, error)
- func (m *MockPlayer) DeleteAllTracksInQueue(ctx context.Context, deviceID, trackURI string) error
- func (m *MockPlayer) EXPECT() *MockPlayerMockRecorder
- func (m *MockPlayer) Enqueue(ctx context.Context, trackURI, deviceID string) error
- func (m *MockPlayer) GoNextTrack(ctx context.Context, deviceID string) error
- func (m *MockPlayer) Pause(ctx context.Context, deviceID string) error
- func (m *MockPlayer) PlayWithTracksAndPosition(ctx context.Context, deviceID string, trackURIs []string, ...) error
- func (m *MockPlayer) SetRepeatMode(ctx context.Context, on bool, deviceID string) error
- func (m *MockPlayer) SetShuffleMode(ctx context.Context, on bool, deviceID string) error
- type MockPlayerMockRecorder
- func (mr *MockPlayerMockRecorder) CurrentlyPlaying(ctx interface{}) *gomock.Call
- func (mr *MockPlayerMockRecorder) DeleteAllTracksInQueue(ctx, deviceID, trackURI interface{}) *gomock.Call
- func (mr *MockPlayerMockRecorder) Enqueue(ctx, trackURI, deviceID interface{}) *gomock.Call
- func (mr *MockPlayerMockRecorder) GoNextTrack(ctx, deviceID interface{}) *gomock.Call
- func (mr *MockPlayerMockRecorder) Pause(ctx, deviceID interface{}) *gomock.Call
- func (mr *MockPlayerMockRecorder) PlayWithTracksAndPosition(ctx, deviceID, trackURIs, position interface{}) *gomock.Call
- func (mr *MockPlayerMockRecorder) SetRepeatMode(ctx, on, deviceID interface{}) *gomock.Call
- func (mr *MockPlayerMockRecorder) SetShuffleMode(ctx, on, deviceID interface{}) *gomock.Call
- type MockTrackClient
- type MockTrackClientMockRecorder
- type MockUser
- type MockUserMockRecorder
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) GetAuthURL ¶
GetAuthURL 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 ¶
SetRepeatMode mocks base method.
func (*MockPlayer) SetShuffleMode ¶
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 ¶
func (m *MockTrackClient) EXPECT() *MockTrackClientMockRecorder
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.
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 ¶
GetActiveDevices 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.