You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Koito/internal/images/mock.go

29 lines
676 B

package images
import (
"context"
"errors"
)
type MockFinder struct{}
func (m *MockFinder) GetArtistImage(ctx context.Context, opts ArtistImageOpts) (string, error) {
return "", nil
}
func (m *MockFinder) GetAlbumImage(ctx context.Context, opts AlbumImageOpts) (string, error) {
return "", nil
}
func (m *MockFinder) Shutdown() {}
type ErrorFinder struct{}
func (m *ErrorFinder) GetArtistImage(ctx context.Context, opts ArtistImageOpts) (string, error) {
return "", errors.New("mock error")
}
func (m *ErrorFinder) GetAlbumImage(ctx context.Context, opts AlbumImageOpts) (string, error) {
return "", errors.New("mock error")
}
func (m *ErrorFinder) Shutdown() {}