api_mock

package
v0.0.0-...-efe0c35 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package api_mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDecoder

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

MockDecoder is a mock of Decoder interface.

func NewMockDecoder

func NewMockDecoder(ctrl *gomock.Controller) *MockDecoder

NewMockDecoder creates a new mock instance.

func (*MockDecoder) Decode

func (m *MockDecoder) Decode(r *http.Request, val any) error

Decode mocks base method.

func (*MockDecoder) EXPECT

func (m *MockDecoder) EXPECT() *MockDecoderMockRecorder

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

type MockDecoderMockRecorder

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

MockDecoderMockRecorder is the mock recorder for MockDecoder.

func (*MockDecoderMockRecorder) Decode

func (mr *MockDecoderMockRecorder) Decode(r, val any) *gomock.Call

Decode indicates an expected call of Decode.

type MockGameFacade

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

MockGameFacade is a mock of GameFacade interface.

func NewMockGameFacade

func NewMockGameFacade(ctrl *gomock.Controller) *MockGameFacade

NewMockGameFacade creates a new mock instance.

func (*MockGameFacade) CreateGame

func (m *MockGameFacade) CreateGame(ctx context.Context, cg model.CreateGame) (int32, error)

CreateGame mocks base method.

func (*MockGameFacade) DeleteGame

func (m *MockGameFacade) DeleteGame(ctx context.Context, id int32, publisher string) error

DeleteGame mocks base method.

func (*MockGameFacade) EXPECT

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

func (*MockGameFacade) GetCompaniesMap

func (m *MockGameFacade) GetCompaniesMap(ctx context.Context) (map[int32]model.Company, error)

GetCompaniesMap mocks base method.

func (*MockGameFacade) GetGameByID

func (m *MockGameFacade) GetGameByID(ctx context.Context, id int32) (model.Game, error)

GetGameByID mocks base method.

func (*MockGameFacade) GetGameModerations

func (m *MockGameFacade) GetGameModerations(ctx context.Context, gameID int32, publisher string) ([]model.Moderation, error)

GetGameModerations mocks base method.

func (*MockGameFacade) GetGames

func (m *MockGameFacade) GetGames(ctx context.Context, page, pageSize uint32, filter model.GamesFilter) ([]model.Game, uint64, error)

GetGames mocks base method.

func (*MockGameFacade) GetGenres

func (m *MockGameFacade) GetGenres(ctx context.Context) ([]model.Genre, error)

GetGenres mocks base method.

func (*MockGameFacade) GetGenresMap

func (m *MockGameFacade) GetGenresMap(ctx context.Context) (map[int32]model.Genre, error)

GetGenresMap mocks base method.

func (*MockGameFacade) GetPlatforms

func (m *MockGameFacade) GetPlatforms(ctx context.Context) ([]model.Platform, error)

GetPlatforms mocks base method.

func (*MockGameFacade) GetPlatformsMap

func (m *MockGameFacade) GetPlatformsMap(ctx context.Context) (map[int32]model.Platform, error)

GetPlatformsMap mocks base method.

func (*MockGameFacade) GetPublisherGames

func (m *MockGameFacade) GetPublisherGames(ctx context.Context, publisher string) ([]model.Game, error)

GetPublisherGames mocks base method.

func (*MockGameFacade) GetTopCompanies

func (m *MockGameFacade) GetTopCompanies(ctx context.Context, companyType string, limit int64) ([]model.Company, error)

GetTopCompanies mocks base method.

func (*MockGameFacade) GetTopGenres

func (m *MockGameFacade) GetTopGenres(ctx context.Context, limit int64) ([]model.Genre, error)

GetTopGenres mocks base method.

func (*MockGameFacade) GetUserRatings

func (m *MockGameFacade) GetUserRatings(ctx context.Context, userID string) (map[int32]uint8, error)

GetUserRatings mocks base method.

func (*MockGameFacade) RateGame

func (m *MockGameFacade) RateGame(ctx context.Context, gameID int32, userID string, rating uint8) error

RateGame mocks base method.

func (*MockGameFacade) UpdateGame

func (m *MockGameFacade) UpdateGame(ctx context.Context, id int32, upd model.UpdateGame) error

UpdateGame mocks base method.

func (*MockGameFacade) UploadGameImages

func (m *MockGameFacade) UploadGameImages(ctx context.Context, coverFiles, screenshotFiles []*multipart.FileHeader, publisherName string) ([]model.File, error)

UploadGameImages mocks base method.

type MockGameFacadeMockRecorder

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

MockGameFacadeMockRecorder is the mock recorder for MockGameFacade.

func (*MockGameFacadeMockRecorder) CreateGame

func (mr *MockGameFacadeMockRecorder) CreateGame(ctx, cg any) *gomock.Call

CreateGame indicates an expected call of CreateGame.

func (*MockGameFacadeMockRecorder) DeleteGame

func (mr *MockGameFacadeMockRecorder) DeleteGame(ctx, id, publisher any) *gomock.Call

DeleteGame indicates an expected call of DeleteGame.

func (*MockGameFacadeMockRecorder) GetCompaniesMap

func (mr *MockGameFacadeMockRecorder) GetCompaniesMap(ctx any) *gomock.Call

GetCompaniesMap indicates an expected call of GetCompaniesMap.

func (*MockGameFacadeMockRecorder) GetGameByID

func (mr *MockGameFacadeMockRecorder) GetGameByID(ctx, id any) *gomock.Call

GetGameByID indicates an expected call of GetGameByID.

func (*MockGameFacadeMockRecorder) GetGameModerations

func (mr *MockGameFacadeMockRecorder) GetGameModerations(ctx, gameID, publisher any) *gomock.Call

GetGameModerations indicates an expected call of GetGameModerations.

func (*MockGameFacadeMockRecorder) GetGames

func (mr *MockGameFacadeMockRecorder) GetGames(ctx, page, pageSize, filter any) *gomock.Call

GetGames indicates an expected call of GetGames.

func (*MockGameFacadeMockRecorder) GetGenres

func (mr *MockGameFacadeMockRecorder) GetGenres(ctx any) *gomock.Call

GetGenres indicates an expected call of GetGenres.

func (*MockGameFacadeMockRecorder) GetGenresMap

func (mr *MockGameFacadeMockRecorder) GetGenresMap(ctx any) *gomock.Call

GetGenresMap indicates an expected call of GetGenresMap.

func (*MockGameFacadeMockRecorder) GetPlatforms

func (mr *MockGameFacadeMockRecorder) GetPlatforms(ctx any) *gomock.Call

GetPlatforms indicates an expected call of GetPlatforms.

func (*MockGameFacadeMockRecorder) GetPlatformsMap

func (mr *MockGameFacadeMockRecorder) GetPlatformsMap(ctx any) *gomock.Call

GetPlatformsMap indicates an expected call of GetPlatformsMap.

func (*MockGameFacadeMockRecorder) GetPublisherGames

func (mr *MockGameFacadeMockRecorder) GetPublisherGames(ctx, publisher any) *gomock.Call

GetPublisherGames indicates an expected call of GetPublisherGames.

func (*MockGameFacadeMockRecorder) GetTopCompanies

func (mr *MockGameFacadeMockRecorder) GetTopCompanies(ctx, companyType, limit any) *gomock.Call

GetTopCompanies indicates an expected call of GetTopCompanies.

func (*MockGameFacadeMockRecorder) GetTopGenres

func (mr *MockGameFacadeMockRecorder) GetTopGenres(ctx, limit any) *gomock.Call

GetTopGenres indicates an expected call of GetTopGenres.

func (*MockGameFacadeMockRecorder) GetUserRatings

func (mr *MockGameFacadeMockRecorder) GetUserRatings(ctx, userID any) *gomock.Call

GetUserRatings indicates an expected call of GetUserRatings.

func (*MockGameFacadeMockRecorder) RateGame

func (mr *MockGameFacadeMockRecorder) RateGame(ctx, gameID, userID, rating any) *gomock.Call

RateGame indicates an expected call of RateGame.

func (*MockGameFacadeMockRecorder) UpdateGame

func (mr *MockGameFacadeMockRecorder) UpdateGame(ctx, id, upd any) *gomock.Call

UpdateGame indicates an expected call of UpdateGame.

func (*MockGameFacadeMockRecorder) UploadGameImages

func (mr *MockGameFacadeMockRecorder) UploadGameImages(ctx, coverFiles, screenshotFiles, publisherName any) *gomock.Call

UploadGameImages indicates an expected call of UploadGameImages.

Jump to

Keyboard shortcuts

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