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 ¶
- func Decode(t *testing.T, r io.Reader, into interface{})
- func Marshal(t *testing.T, payload interface{}) *bytes.Buffer
- func MarshalBytes(t *testing.T, payload interface{}) []byte
- type APIClientMock
- func (m *APIClientMock) CreateFranchise(arg0 context.Context, arg1 *client.CreateFranchiseRequest) (*client.CreateFranchiseResponse, error)
- func (m *APIClientMock) CreateGame(arg0 context.Context, arg1 *client.CreateGameRequest) (*client.CreateGameResponse, error)
- func (m *APIClientMock) CreateUser(arg0 context.Context, arg1 *client.CreateUserRequest) (*client.CreateUserResponse, error)
- func (m *APIClientMock) DeleteUserGame(arg0 context.Context, arg1 *client.DeleteUserGameRequest) error
- func (m *APIClientMock) EXPECT() *APIClientMockMockRecorder
- func (m *APIClientMock) GetFranchises(arg0 context.Context, arg1 *client.GetFranchisesRequest) (*client.GetFranchisesResponse, error)
- func (m *APIClientMock) GetGames(arg0 context.Context, arg1 *client.GetGamesRequest) (*client.GetGamesResponse, error)
- func (m *APIClientMock) GetStatuses(arg0 context.Context, arg1 *client.GetStatusesRequest) (*client.GetStatusesResponse, error)
- func (m *APIClientMock) GetUser(arg0 context.Context, arg1 *client.GetUserRequest) (*client.GetUserResponse, error)
- func (m *APIClientMock) LoginUser(arg0 context.Context, arg1 *client.LoginUserRequest) (*client.UserLoginResponse, error)
- func (m *APIClientMock) LogoutUser(arg0 context.Context, arg1 *client.LogoutUserRequest) error
- func (m *APIClientMock) UpdateGameProgress(arg0 context.Context, arg1 *client.UpdateGameProgressRequest) error
- type APIClientMockMockRecorder
- func (mr *APIClientMockMockRecorder) CreateFranchise(arg0, arg1 interface{}) *gomock.Call
- func (mr *APIClientMockMockRecorder) CreateGame(arg0, arg1 interface{}) *gomock.Call
- func (mr *APIClientMockMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *APIClientMockMockRecorder) DeleteUserGame(arg0, arg1 interface{}) *gomock.Call
- func (mr *APIClientMockMockRecorder) GetFranchises(arg0, arg1 interface{}) *gomock.Call
- func (mr *APIClientMockMockRecorder) GetGames(arg0, arg1 interface{}) *gomock.Call
- func (mr *APIClientMockMockRecorder) GetStatuses(arg0, arg1 interface{}) *gomock.Call
- func (mr *APIClientMockMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *APIClientMockMockRecorder) LoginUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *APIClientMockMockRecorder) LogoutUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *APIClientMockMockRecorder) UpdateGameProgress(arg0, arg1 interface{}) *gomock.Call
- type AuthenticatorMock
- type AuthenticatorMockMockRecorder
- type FranchiseModelMock
- type FranchiseModelMockMockRecorder
- type GameModelMock
- func (m *GameModelMock) AllForUser(arg0 string) ([]*models.Game, error)
- func (m *GameModelMock) ChangeGameProgress(arg0, arg1 string, arg2 *models.GameProgress) error
- func (m *GameModelMock) ChangeGameStatus(arg0, arg1 string, arg2 models.Status) error
- func (m *GameModelMock) DeleteGame(arg0, arg1 string) error
- func (m *GameModelMock) EXPECT() *GameModelMockMockRecorder
- func (m *GameModelMock) Get(arg0 string) (*models.Game, error)
- func (m *GameModelMock) Insert(arg0 *models.Game) (*models.Game, error)
- type GameModelMockMockRecorder
- func (mr *GameModelMockMockRecorder) AllForUser(arg0 interface{}) *gomock.Call
- func (mr *GameModelMockMockRecorder) ChangeGameProgress(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *GameModelMockMockRecorder) ChangeGameStatus(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *GameModelMockMockRecorder) DeleteGame(arg0, arg1 interface{}) *gomock.Call
- func (mr *GameModelMockMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *GameModelMockMockRecorder) Insert(arg0 interface{}) *gomock.Call
- type RendererMock
- type RendererMockMockRecorder
- type ServerBuilder
- func (s ServerBuilder) Build() *httptest.Server
- func (s ServerBuilder) Data(data interface{}) ServerBuilder
- func (s ServerBuilder) Method(method string) ServerBuilder
- func (s ServerBuilder) Path(path string) ServerBuilder
- func (s ServerBuilder) Query(query string) ServerBuilder
- func (s ServerBuilder) Return(responseCode int) ServerBuilder
- func (s ServerBuilder) Token(token string) ServerBuilder
- type UserGamesModelMock
- func (m *UserGamesModelMock) ChangeGameProgress(arg0, arg1 string, arg2 *models.GameProgress) error
- func (m *UserGamesModelMock) ChangeGameStatus(arg0, arg1 string, arg2 models.Status) error
- func (m *UserGamesModelMock) DeleteUserGame(arg0 string) error
- func (m *UserGamesModelMock) EXPECT() *UserGamesModelMockMockRecorder
- func (m *UserGamesModelMock) GetAvailableGamesFor(arg0 string) ([]*models.Game, error)
- func (m *UserGamesModelMock) LinkGameToUser(arg0, arg1 string, arg2 *models.GameProgress) error
- type UserGamesModelMockMockRecorder
- func (mr *UserGamesModelMockMockRecorder) ChangeGameProgress(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *UserGamesModelMockMockRecorder) ChangeGameStatus(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *UserGamesModelMockMockRecorder) DeleteUserGame(arg0 interface{}) *gomock.Call
- func (mr *UserGamesModelMockMockRecorder) GetAvailableGamesFor(arg0 interface{}) *gomock.Call
- func (mr *UserGamesModelMockMockRecorder) LinkGameToUser(arg0, arg1, arg2 interface{}) *gomock.Call
- type UserModelMock
- func (m *UserModelMock) AssociateTokenWithUser(arg0, arg1 string) error
- func (m *UserModelMock) Authenticate(arg0, arg1 string) (*models.User, error)
- func (m *UserModelMock) EXPECT() *UserModelMockMockRecorder
- func (m *UserModelMock) GetUserByToken(arg0 string) (*models.User, error)
- func (m *UserModelMock) Insert(arg0 *models.User) (*models.User, error)
- func (m *UserModelMock) InvalidateToken(arg0, arg1 string) error
- type UserModelMockMockRecorder
- func (mr *UserModelMockMockRecorder) AssociateTokenWithUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *UserModelMockMockRecorder) Authenticate(arg0, arg1 interface{}) *gomock.Call
- func (mr *UserModelMockMockRecorder) GetUserByToken(arg0 interface{}) *gomock.Call
- func (mr *UserModelMockMockRecorder) Insert(arg0 interface{}) *gomock.Call
- func (mr *UserModelMockMockRecorder) InvalidateToken(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶
Marshal unmarshalls the payload and returns a *bytes.Buffer with the content, or fails the test if unable to
func MarshalBytes ¶
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 ¶
func (m *APIClientMock) CreateFranchise(arg0 context.Context, arg1 *client.CreateFranchiseRequest) (*client.CreateFranchiseResponse, error)
CreateFranchise mocks base method.
func (*APIClientMock) CreateGame ¶
func (m *APIClientMock) CreateGame(arg0 context.Context, arg1 *client.CreateGameRequest) (*client.CreateGameResponse, error)
CreateGame mocks base method.
func (*APIClientMock) CreateUser ¶
func (m *APIClientMock) CreateUser(arg0 context.Context, arg1 *client.CreateUserRequest) (*client.CreateUserResponse, error)
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 ¶
func (m *APIClientMock) EXPECT() *APIClientMockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*APIClientMock) GetFranchises ¶
func (m *APIClientMock) GetFranchises(arg0 context.Context, arg1 *client.GetFranchisesRequest) (*client.GetFranchisesResponse, error)
GetFranchises mocks base method.
func (*APIClientMock) GetGames ¶
func (m *APIClientMock) GetGames(arg0 context.Context, arg1 *client.GetGamesRequest) (*client.GetGamesResponse, error)
GetGames mocks base method.
func (*APIClientMock) GetStatuses ¶
func (m *APIClientMock) GetStatuses(arg0 context.Context, arg1 *client.GetStatusesRequest) (*client.GetStatusesResponse, error)
GetStatuses mocks base method.
func (*APIClientMock) GetUser ¶
func (m *APIClientMock) GetUser(arg0 context.Context, arg1 *client.GetUserRequest) (*client.GetUserResponse, error)
GetUser mocks base method.
func (*APIClientMock) LoginUser ¶
func (m *APIClientMock) LoginUser(arg0 context.Context, arg1 *client.LoginUserRequest) (*client.UserLoginResponse, error)
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 ¶
func (m *AuthenticatorMock) EXPECT() *AuthenticatorMockMockRecorder
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 ¶
func (m *FranchiseModelMock) EXPECT() *FranchiseModelMockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (m *GameModelMock) EXPECT() *GameModelMockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (m *RendererMock) EXPECT() *RendererMockMockRecorder
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 ¶
func (m *UserGamesModelMock) EXPECT() *UserGamesModelMockMockRecorder
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 ¶
func (m *UserModelMock) EXPECT() *UserModelMockMockRecorder
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) 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.