fixtures

package
v0.0.0-...-015e340 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package fixtures is a generated GoMock package.

Package fixtures is a generated GoMock package.

Package fixtures is a generated GoMock package.

Package fixtures is a generated GoMock package.

Package fixtures is a generated GoMock package.

Package fixtures is a generated GoMock package.

Package fixtures is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(t *testing.T, r io.Reader, into interface{})

Decode decodes the reader into into the passed value, or fails the test if unable to

func Marshal

func Marshal(t *testing.T, payload interface{}) *bytes.Buffer

Marshal unmarshalls the payload and returns a *bytes.Buffer with the content, or fails the test if unable to

func MarshalBytes

func MarshalBytes(t *testing.T, payload interface{}) []byte

MarshalBytes unmarshals the payload and returns a []byte with the content, or fails the test if unable to

Types

type APIClientMock

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

APIClientMock is a mock of APIClient interface.

func NewAPIClientMock

func NewAPIClientMock(ctrl *gomock.Controller) *APIClientMock

NewAPIClientMock creates a new mock instance.

func (*APIClientMock) CreateFranchise

CreateFranchise mocks base method.

func (*APIClientMock) CreateGame

CreateGame mocks base method.

func (*APIClientMock) CreateUser

CreateUser mocks base method.

func (*APIClientMock) DeleteUserGame

func (m *APIClientMock) DeleteUserGame(arg0 context.Context, arg1 *client.DeleteUserGameRequest) error

DeleteUserGame mocks base method.

func (*APIClientMock) EXPECT

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

func (*APIClientMock) GetFranchises

GetFranchises mocks base method.

func (*APIClientMock) GetGames

GetGames mocks base method.

func (*APIClientMock) GetStatuses

GetStatuses mocks base method.

func (*APIClientMock) GetUser

GetUser mocks base method.

func (*APIClientMock) LoginUser

LoginUser mocks base method.

func (*APIClientMock) LogoutUser

func (m *APIClientMock) LogoutUser(arg0 context.Context, arg1 *client.LogoutUserRequest) error

LogoutUser mocks base method.

func (*APIClientMock) UpdateGameProgress

func (m *APIClientMock) UpdateGameProgress(arg0 context.Context, arg1 *client.UpdateGameProgressRequest) error

UpdateGameProgress mocks base method.

type APIClientMockMockRecorder

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

APIClientMockMockRecorder is the mock recorder for APIClientMock.

func (*APIClientMockMockRecorder) CreateFranchise

func (mr *APIClientMockMockRecorder) CreateFranchise(arg0, arg1 interface{}) *gomock.Call

CreateFranchise indicates an expected call of CreateFranchise.

func (*APIClientMockMockRecorder) CreateGame

func (mr *APIClientMockMockRecorder) CreateGame(arg0, arg1 interface{}) *gomock.Call

CreateGame indicates an expected call of CreateGame.

func (*APIClientMockMockRecorder) CreateUser

func (mr *APIClientMockMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*APIClientMockMockRecorder) DeleteUserGame

func (mr *APIClientMockMockRecorder) DeleteUserGame(arg0, arg1 interface{}) *gomock.Call

DeleteUserGame indicates an expected call of DeleteUserGame.

func (*APIClientMockMockRecorder) GetFranchises

func (mr *APIClientMockMockRecorder) GetFranchises(arg0, arg1 interface{}) *gomock.Call

GetFranchises indicates an expected call of GetFranchises.

func (*APIClientMockMockRecorder) GetGames

func (mr *APIClientMockMockRecorder) GetGames(arg0, arg1 interface{}) *gomock.Call

GetGames indicates an expected call of GetGames.

func (*APIClientMockMockRecorder) GetStatuses

func (mr *APIClientMockMockRecorder) GetStatuses(arg0, arg1 interface{}) *gomock.Call

GetStatuses indicates an expected call of GetStatuses.

func (*APIClientMockMockRecorder) GetUser

func (mr *APIClientMockMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*APIClientMockMockRecorder) LoginUser

func (mr *APIClientMockMockRecorder) LoginUser(arg0, arg1 interface{}) *gomock.Call

LoginUser indicates an expected call of LoginUser.

func (*APIClientMockMockRecorder) LogoutUser

func (mr *APIClientMockMockRecorder) LogoutUser(arg0, arg1 interface{}) *gomock.Call

LogoutUser indicates an expected call of LogoutUser.

func (*APIClientMockMockRecorder) UpdateGameProgress

func (mr *APIClientMockMockRecorder) UpdateGameProgress(arg0, arg1 interface{}) *gomock.Call

UpdateGameProgress indicates an expected call of UpdateGameProgress.

type AuthenticatorMock

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

AuthenticatorMock is a mock of Authenticator interface.

func NewAuthenticatorMock

func NewAuthenticatorMock(ctrl *gomock.Controller) *AuthenticatorMock

NewAuthenticatorMock creates a new mock instance.

func (*AuthenticatorMock) DecodeToken

func (m *AuthenticatorMock) DecodeToken(arg0 string) (*models.User, error)

DecodeToken mocks base method.

func (*AuthenticatorMock) EXPECT

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

func (*AuthenticatorMock) NewTokenForUser

func (m *AuthenticatorMock) NewTokenForUser(arg0 *models.User) (string, error)

NewTokenForUser mocks base method.

type AuthenticatorMockMockRecorder

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

AuthenticatorMockMockRecorder is the mock recorder for AuthenticatorMock.

func (*AuthenticatorMockMockRecorder) DecodeToken

func (mr *AuthenticatorMockMockRecorder) DecodeToken(arg0 interface{}) *gomock.Call

DecodeToken indicates an expected call of DecodeToken.

func (*AuthenticatorMockMockRecorder) NewTokenForUser

func (mr *AuthenticatorMockMockRecorder) NewTokenForUser(arg0 interface{}) *gomock.Call

NewTokenForUser indicates an expected call of NewTokenForUser.

type FranchiseModelMock

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

FranchiseModelMock is a mock of FranchiseModel interface.

func NewFranchiseModelMock

func NewFranchiseModelMock(ctrl *gomock.Controller) *FranchiseModelMock

NewFranchiseModelMock creates a new mock instance.

func (*FranchiseModelMock) All

func (m *FranchiseModelMock) All(arg0 string) ([]*models.Franchise, error)

All mocks base method.

func (*FranchiseModelMock) EXPECT

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

func (*FranchiseModelMock) Insert

Insert mocks base method.

type FranchiseModelMockMockRecorder

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

FranchiseModelMockMockRecorder is the mock recorder for FranchiseModelMock.

func (*FranchiseModelMockMockRecorder) All

func (mr *FranchiseModelMockMockRecorder) All(arg0 interface{}) *gomock.Call

All indicates an expected call of All.

func (*FranchiseModelMockMockRecorder) Insert

func (mr *FranchiseModelMockMockRecorder) Insert(arg0 interface{}) *gomock.Call

Insert indicates an expected call of Insert.

type GameModelMock

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

GameModelMock is a mock of GameModel interface.

func NewGameModelMock

func NewGameModelMock(ctrl *gomock.Controller) *GameModelMock

NewGameModelMock creates a new mock instance.

func (*GameModelMock) AllForUser

func (m *GameModelMock) AllForUser(arg0 string) ([]*models.Game, error)

AllForUser mocks base method.

func (*GameModelMock) ChangeGameProgress

func (m *GameModelMock) ChangeGameProgress(arg0, arg1 string, arg2 *models.GameProgress) error

ChangeGameProgress mocks base method.

func (*GameModelMock) ChangeGameStatus

func (m *GameModelMock) ChangeGameStatus(arg0, arg1 string, arg2 models.Status) error

ChangeGameStatus mocks base method.

func (*GameModelMock) DeleteGame

func (m *GameModelMock) DeleteGame(arg0, arg1 string) error

DeleteGame mocks base method.

func (*GameModelMock) EXPECT

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

func (*GameModelMock) Get

func (m *GameModelMock) Get(arg0 string) (*models.Game, error)

Get mocks base method.

func (*GameModelMock) Insert

func (m *GameModelMock) Insert(arg0 *models.Game) (*models.Game, error)

Insert mocks base method.

type GameModelMockMockRecorder

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

GameModelMockMockRecorder is the mock recorder for GameModelMock.

func (*GameModelMockMockRecorder) AllForUser

func (mr *GameModelMockMockRecorder) AllForUser(arg0 interface{}) *gomock.Call

AllForUser indicates an expected call of AllForUser.

func (*GameModelMockMockRecorder) ChangeGameProgress

func (mr *GameModelMockMockRecorder) ChangeGameProgress(arg0, arg1, arg2 interface{}) *gomock.Call

ChangeGameProgress indicates an expected call of ChangeGameProgress.

func (*GameModelMockMockRecorder) ChangeGameStatus

func (mr *GameModelMockMockRecorder) ChangeGameStatus(arg0, arg1, arg2 interface{}) *gomock.Call

ChangeGameStatus indicates an expected call of ChangeGameStatus.

func (*GameModelMockMockRecorder) DeleteGame

func (mr *GameModelMockMockRecorder) DeleteGame(arg0, arg1 interface{}) *gomock.Call

DeleteGame indicates an expected call of DeleteGame.

func (*GameModelMockMockRecorder) Get

func (mr *GameModelMockMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*GameModelMockMockRecorder) Insert

func (mr *GameModelMockMockRecorder) Insert(arg0 interface{}) *gomock.Call

Insert indicates an expected call of Insert.

type RendererMock

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

RendererMock is a mock of Renderer interface.

func NewRendererMock

func NewRendererMock(ctrl *gomock.Controller) *RendererMock

NewRendererMock creates a new mock instance.

func (*RendererMock) EXPECT

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

func (*RendererMock) Render

func (m *RendererMock) Render(arg0 http.ResponseWriter, arg1 *http.Request, arg2 server.TemplateData, arg3 string) error

Render mocks base method.

type RendererMockMockRecorder

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

RendererMockMockRecorder is the mock recorder for RendererMock.

func (*RendererMockMockRecorder) Render

func (mr *RendererMockMockRecorder) Render(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Render indicates an expected call of Render.

type ServerBuilder

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

func NewTestServer

func NewTestServer(t *testing.T) ServerBuilder

func (ServerBuilder) Build

func (s ServerBuilder) Build() *httptest.Server

func (ServerBuilder) Data

func (s ServerBuilder) Data(data interface{}) ServerBuilder

func (ServerBuilder) Method

func (s ServerBuilder) Method(method string) ServerBuilder

func (ServerBuilder) Path

func (s ServerBuilder) Path(path string) ServerBuilder

func (ServerBuilder) Query

func (s ServerBuilder) Query(query string) ServerBuilder

func (ServerBuilder) Return

func (s ServerBuilder) Return(responseCode int) ServerBuilder

func (ServerBuilder) Token

func (s ServerBuilder) Token(token string) ServerBuilder

type UserGamesModelMock

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

UserGamesModelMock is a mock of UserGamesModel interface.

func NewUserGamesModelMock

func NewUserGamesModelMock(ctrl *gomock.Controller) *UserGamesModelMock

NewUserGamesModelMock creates a new mock instance.

func (*UserGamesModelMock) ChangeGameProgress

func (m *UserGamesModelMock) ChangeGameProgress(arg0, arg1 string, arg2 *models.GameProgress) error

ChangeGameProgress mocks base method.

func (*UserGamesModelMock) ChangeGameStatus

func (m *UserGamesModelMock) ChangeGameStatus(arg0, arg1 string, arg2 models.Status) error

ChangeGameStatus mocks base method.

func (*UserGamesModelMock) DeleteUserGame

func (m *UserGamesModelMock) DeleteUserGame(arg0 string) error

DeleteUserGame mocks base method.

func (*UserGamesModelMock) EXPECT

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

func (*UserGamesModelMock) GetAvailableGamesFor

func (m *UserGamesModelMock) GetAvailableGamesFor(arg0 string) ([]*models.Game, error)

GetAvailableGamesFor mocks base method.

func (*UserGamesModelMock) LinkGameToUser

func (m *UserGamesModelMock) LinkGameToUser(arg0, arg1 string, arg2 *models.GameProgress) error

LinkGameToUser mocks base method.

type UserGamesModelMockMockRecorder

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

UserGamesModelMockMockRecorder is the mock recorder for UserGamesModelMock.

func (*UserGamesModelMockMockRecorder) ChangeGameProgress

func (mr *UserGamesModelMockMockRecorder) ChangeGameProgress(arg0, arg1, arg2 interface{}) *gomock.Call

ChangeGameProgress indicates an expected call of ChangeGameProgress.

func (*UserGamesModelMockMockRecorder) ChangeGameStatus

func (mr *UserGamesModelMockMockRecorder) ChangeGameStatus(arg0, arg1, arg2 interface{}) *gomock.Call

ChangeGameStatus indicates an expected call of ChangeGameStatus.

func (*UserGamesModelMockMockRecorder) DeleteUserGame

func (mr *UserGamesModelMockMockRecorder) DeleteUserGame(arg0 interface{}) *gomock.Call

DeleteUserGame indicates an expected call of DeleteUserGame.

func (*UserGamesModelMockMockRecorder) GetAvailableGamesFor

func (mr *UserGamesModelMockMockRecorder) GetAvailableGamesFor(arg0 interface{}) *gomock.Call

GetAvailableGamesFor indicates an expected call of GetAvailableGamesFor.

func (*UserGamesModelMockMockRecorder) LinkGameToUser

func (mr *UserGamesModelMockMockRecorder) LinkGameToUser(arg0, arg1, arg2 interface{}) *gomock.Call

LinkGameToUser indicates an expected call of LinkGameToUser.

type UserModelMock

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

UserModelMock is a mock of UserModel interface.

func NewUserModelMock

func NewUserModelMock(ctrl *gomock.Controller) *UserModelMock

NewUserModelMock creates a new mock instance.

func (*UserModelMock) AssociateTokenWithUser

func (m *UserModelMock) AssociateTokenWithUser(arg0, arg1 string) error

AssociateTokenWithUser mocks base method.

func (*UserModelMock) Authenticate

func (m *UserModelMock) Authenticate(arg0, arg1 string) (*models.User, error)

Authenticate mocks base method.

func (*UserModelMock) EXPECT

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

func (*UserModelMock) GetUserByToken

func (m *UserModelMock) GetUserByToken(arg0 string) (*models.User, error)

GetUserByToken mocks base method.

func (*UserModelMock) Insert

func (m *UserModelMock) Insert(arg0 *models.User) (*models.User, error)

Insert mocks base method.

func (*UserModelMock) InvalidateToken

func (m *UserModelMock) InvalidateToken(arg0, arg1 string) error

InvalidateToken mocks base method.

type UserModelMockMockRecorder

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

UserModelMockMockRecorder is the mock recorder for UserModelMock.

func (*UserModelMockMockRecorder) AssociateTokenWithUser

func (mr *UserModelMockMockRecorder) AssociateTokenWithUser(arg0, arg1 interface{}) *gomock.Call

AssociateTokenWithUser indicates an expected call of AssociateTokenWithUser.

func (*UserModelMockMockRecorder) Authenticate

func (mr *UserModelMockMockRecorder) Authenticate(arg0, arg1 interface{}) *gomock.Call

Authenticate indicates an expected call of Authenticate.

func (*UserModelMockMockRecorder) GetUserByToken

func (mr *UserModelMockMockRecorder) GetUserByToken(arg0 interface{}) *gomock.Call

GetUserByToken indicates an expected call of GetUserByToken.

func (*UserModelMockMockRecorder) Insert

func (mr *UserModelMockMockRecorder) Insert(arg0 interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*UserModelMockMockRecorder) InvalidateToken

func (mr *UserModelMockMockRecorder) InvalidateToken(arg0, arg1 interface{}) *gomock.Call

InvalidateToken indicates an expected call of InvalidateToken.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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