mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-18 03:36:35 -07:00
chore: initial public commit
This commit is contained in:
commit
fc9054b78c
250 changed files with 32809 additions and 0 deletions
28
internal/images/mock.go
Normal file
28
internal/images/mock.go
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue