🏡 index : quine-global/quintodrome.git

// Code generated by ndpgen. DO NOT EDIT.
//
// This file contains mock implementations for non-WASM builds.
// These mocks allow IDE support, compilation, and unit testing on non-WASM platforms.
// Plugin authors can use the exported mock instances to set expectations in tests.
//
//go:build !wasip1

package host

import (
	"github.com/stretchr/testify/mock"
)

// mockArtworkService is the mock implementation for testing.
type mockArtworkService struct {
	mock.Mock
}

// ArtworkMock is the auto-instantiated mock instance for testing.
// Use this to set expectations: host.ArtworkMock.On("MethodName", args...).Return(values...)
var ArtworkMock = &mockArtworkService{}

// GetArtistUrl is the mock method for ArtworkGetArtistUrl.
func (m *mockArtworkService) GetArtistUrl(id string, size int32) (string, error) {
	args := m.Called(id, size)
	return args.String(0), args.Error(1)
}

// ArtworkGetArtistUrl delegates to the mock instance.
// GetArtistUrl generates a public URL for an artist's artwork.
//
// Parameters:
//   - id: The artist's unique identifier
//   - size: Desired image size in pixels (0 for original size)
//
// Returns the public URL for the artwork, or an error if generation fails.
func ArtworkGetArtistUrl(id string, size int32) (string, error) {
	return ArtworkMock.GetArtistUrl(id, size)
}

// GetAlbumUrl is the mock method for ArtworkGetAlbumUrl.
func (m *mockArtworkService) GetAlbumUrl(id string, size int32) (string, error) {
	args := m.Called(id, size)
	return args.String(0), args.Error(1)
}

// ArtworkGetAlbumUrl delegates to the mock instance.
// GetAlbumUrl generates a public URL for an album's artwork.
//
// Parameters:
//   - id: The album's unique identifier
//   - size: Desired image size in pixels (0 for original size)
//
// Returns the public URL for the artwork, or an error if generation fails.
func ArtworkGetAlbumUrl(id string, size int32) (string, error) {
	return ArtworkMock.GetAlbumUrl(id, size)
}

// GetTrackUrl is the mock method for ArtworkGetTrackUrl.
func (m *mockArtworkService) GetTrackUrl(id string, size int32) (string, error) {
	args := m.Called(id, size)
	return args.String(0), args.Error(1)
}

// ArtworkGetTrackUrl delegates to the mock instance.
// GetTrackUrl generates a public URL for a track's artwork.
//
// Parameters:
//   - id: The track's (media file) unique identifier
//   - size: Desired image size in pixels (0 for original size)
//
// Returns the public URL for the artwork, or an error if generation fails.
func ArtworkGetTrackUrl(id string, size int32) (string, error) {
	return ArtworkMock.GetTrackUrl(id, size)
}

// GetPlaylistUrl is the mock method for ArtworkGetPlaylistUrl.
func (m *mockArtworkService) GetPlaylistUrl(id string, size int32) (string, error) {
	args := m.Called(id, size)
	return args.String(0), args.Error(1)
}

// ArtworkGetPlaylistUrl delegates to the mock instance.
// GetPlaylistUrl generates a public URL for a playlist's artwork.
//
// Parameters:
//   - id: The playlist's unique identifier
//   - size: Desired image size in pixels (0 for original size)
//
// Returns the public URL for the artwork, or an error if generation fails.
func ArtworkGetPlaylistUrl(id string, size int32) (string, error) {
	return ArtworkMock.GetPlaylistUrl(id, size)
}