mocks

package
v0.0.0-...-8f08a1d Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameLogic

type GameLogic struct {
	mock.Mock
}

GameLogic is an autogenerated mock type for the GameLogic type

func (*GameLogic) GetGameByID

func (_m *GameLogic) GetGameByID(ctx context.Context, gameID *uuid.UUID) (*domain.Game, error)

GetGameByID provides a mock function with given fields: ctx, gameID

func (*GameLogic) GetGameStat

func (_m *GameLogic) GetGameStat(ctx context.Context, gameID *uuid.UUID) (*domain.GameStat, error)

GetGameStat provides a mock function with given fields: ctx, gameID

func (*GameLogic) Guess

func (_m *GameLogic) Guess(ctx context.Context, gameID *uuid.UUID, letter string) (bool, error)

Guess provides a mock function with given fields: ctx, gameID, letter

func (*GameLogic) StartNewGame

func (_m *GameLogic) StartNewGame(ctx context.Context, attemptCount int, w *domain.Word) (*uuid.UUID, error)

StartNewGame provides a mock function with given fields: ctx, attemptCount, w

type GameRW

type GameRW struct {
	mock.Mock
}

GameRW is an autogenerated mock type for the GameRW type

func (*GameRW) GetGame

func (_m *GameRW) GetGame(ctx context.Context, gameID *uuid.UUID) (*domain.Game, error)

GetGame provides a mock function with given fields: ctx, gameID

func (*GameRW) SaveGame

func (_m *GameRW) SaveGame(ctx context.Context, game *domain.Game) error

SaveGame provides a mock function with given fields: ctx, game

type GameRepository

type GameRepository struct {
	mock.Mock
}

GameRepository is an autogenerated mock type for the GameRepository type

func (*GameRepository) GetGame

func (_m *GameRepository) GetGame(ctx context.Context, gameID *uuid.UUID) (*domain.Game, error)

GetGame provides a mock function with given fields: ctx, gameID

func (*GameRepository) GetWordList

func (_m *GameRepository) GetWordList(ctx context.Context) ([]*domain.Word, error)

GetWordList provides a mock function with given fields: ctx

func (*GameRepository) SaveGame

func (_m *GameRepository) SaveGame(ctx context.Context, game *domain.Game) error

SaveGame provides a mock function with given fields: ctx, game

func (*GameRepository) SaveWord

func (_m *GameRepository) SaveWord(ctx context.Context, word *domain.Word) error

SaveWord provides a mock function with given fields: ctx, word

type Handler

type Handler struct {
	mock.Mock
}

Handler is an autogenerated mock type for the Handler type

func (*Handler) GetGameByID

func (_m *Handler) GetGameByID(ctx context.Context, gameID *uuid.UUID) (*domain.Game, error)

GetGameByID provides a mock function with given fields: ctx, gameID

func (*Handler) GetGameStat

func (_m *Handler) GetGameStat(ctx context.Context, gameID *uuid.UUID) (*domain.GameStat, error)

GetGameStat provides a mock function with given fields: ctx, gameID

func (*Handler) GetRandomWord

func (_m *Handler) GetRandomWord(ctx context.Context) (*domain.Word, error)

GetRandomWord provides a mock function with given fields: ctx

func (*Handler) Guess

func (_m *Handler) Guess(ctx context.Context, gameID *uuid.UUID, letter string) (bool, error)

Guess provides a mock function with given fields: ctx, gameID, letter

func (*Handler) StartNewGame

func (_m *Handler) StartNewGame(ctx context.Context, attemptCount int, w *domain.Word) (*uuid.UUID, error)

StartNewGame provides a mock function with given fields: ctx, attemptCount, w

func (*Handler) WordCreate

func (_m *Handler) WordCreate(ctx context.Context, s string) (*domain.Word, error)

WordCreate provides a mock function with given fields: ctx, s

type WordLogic

type WordLogic struct {
	mock.Mock
}

WordLogic is an autogenerated mock type for the WordLogic type

func (*WordLogic) GetRandomWord

func (_m *WordLogic) GetRandomWord(ctx context.Context) (*domain.Word, error)

GetRandomWord provides a mock function with given fields: ctx

func (*WordLogic) WordCreate

func (_m *WordLogic) WordCreate(ctx context.Context, s string) (*domain.Word, error)

WordCreate provides a mock function with given fields: ctx, s

type WordRW

type WordRW struct {
	mock.Mock
}

WordRW is an autogenerated mock type for the WordRW type

func (*WordRW) GetWordList

func (_m *WordRW) GetWordList(ctx context.Context) ([]*domain.Word, error)

GetWordList provides a mock function with given fields: ctx

func (*WordRW) SaveWord

func (_m *WordRW) SaveWord(ctx context.Context, word *domain.Word) error

SaveWord provides a mock function with given fields: ctx, word

Jump to

Keyboard shortcuts

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