mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Querier

type Querier struct {
	mock.Mock
}

Querier is an autogenerated mock type for the Querier type

func NewQuerier

func NewQuerier(t interface {
	mock.TestingT
	Cleanup(func())
}) *Querier

NewQuerier creates a new instance of Querier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Querier) CompletePrediction

func (_mock *Querier) CompletePrediction(ctx context.Context, arg db.CompletePredictionParams) error

CompletePrediction provides a mock function for the type Querier

func (*Querier) CreateLoginHistory

func (_mock *Querier) CreateLoginHistory(ctx context.Context, arg db.CreateLoginHistoryParams) (uuid.UUID, error)

CreateLoginHistory provides a mock function for the type Querier

func (*Querier) CreateNewPrediction

func (_mock *Querier) CreateNewPrediction(ctx context.Context, arg db.CreateNewPredictionParams) (db.Prediction, error)

CreateNewPrediction provides a mock function for the type Querier

func (*Querier) CreateRefreshToken

func (_mock *Querier) CreateRefreshToken(ctx context.Context, arg db.CreateRefreshTokenParams) (uuid.UUID, error)

CreateRefreshToken provides a mock function for the type Querier

func (*Querier) CreateUser

func (_mock *Querier) CreateUser(ctx context.Context, arg db.CreateUserParams) (uuid.UUID, error)

CreateUser provides a mock function for the type Querier

func (*Querier) DeleteUser

func (_mock *Querier) DeleteUser(ctx context.Context, id uuid.UUID) error

DeleteUser provides a mock function for the type Querier

func (*Querier) EXPECT

func (_m *Querier) EXPECT() *Querier_Expecter

func (*Querier) GetActiveTokensByUser

func (_mock *Querier) GetActiveTokensByUser(ctx context.Context, userID uuid.UUID) ([]db.RefreshToken, error)

GetActiveTokensByUser provides a mock function for the type Querier

func (*Querier) GetLoginHistoryByUser

func (_mock *Querier) GetLoginHistoryByUser(ctx context.Context, arg db.GetLoginHistoryByUserParams) ([]db.LoginHistory, error)

GetLoginHistoryByUser provides a mock function for the type Querier

func (*Querier) GetPrediction

func (_mock *Querier) GetPrediction(ctx context.Context, id uuid.UUID) (db.Prediction, error)

GetPrediction provides a mock function for the type Querier

func (*Querier) GetPredictionsByUserID

func (_mock *Querier) GetPredictionsByUserID(ctx context.Context, arg db.GetPredictionsByUserIDParams) ([]db.Prediction, error)

GetPredictionsByUserID provides a mock function for the type Querier

func (*Querier) GetRefreshTokenByHash

func (_mock *Querier) GetRefreshTokenByHash(ctx context.Context, tokenHash string) (db.RefreshToken, error)

GetRefreshTokenByHash provides a mock function for the type Querier

func (*Querier) GetStatsByUserID

func (_mock *Querier) GetStatsByUserID(ctx context.Context, userID uuid.UUID) (db.Stat, error)

GetStatsByUserID provides a mock function for the type Querier

func (*Querier) GetUserByID

func (_mock *Querier) GetUserByID(ctx context.Context, id uuid.UUID) (db.User, error)

GetUserByID provides a mock function for the type Querier

func (*Querier) GetUserByLogin

func (_mock *Querier) GetUserByLogin(ctx context.Context, login string) (db.User, error)

GetUserByLogin provides a mock function for the type Querier

func (*Querier) RevokeAllUserTokens

func (_mock *Querier) RevokeAllUserTokens(ctx context.Context, userID uuid.UUID) error

RevokeAllUserTokens provides a mock function for the type Querier

func (*Querier) RevokeRefreshToken

func (_mock *Querier) RevokeRefreshToken(ctx context.Context, tokenHash string) error

RevokeRefreshToken provides a mock function for the type Querier

func (*Querier) UpdateStats

func (_mock *Querier) UpdateStats(ctx context.Context, arg db.UpdateStatsParams) error

UpdateStats provides a mock function for the type Querier

func (*Querier) UpdateUser

func (_mock *Querier) UpdateUser(ctx context.Context, arg db.UpdateUserParams) error

UpdateUser provides a mock function for the type Querier

func (*Querier) UpdateUserAvatar

func (_mock *Querier) UpdateUserAvatar(ctx context.Context, arg db.UpdateUserAvatarParams) error

UpdateUserAvatar provides a mock function for the type Querier

func (*Querier) UpdateUserPassword

func (_mock *Querier) UpdateUserPassword(ctx context.Context, arg db.UpdateUserPasswordParams) error

UpdateUserPassword provides a mock function for the type Querier

type Querier_CompletePrediction_Call

type Querier_CompletePrediction_Call struct {
	*mock.Call
}

Querier_CompletePrediction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CompletePrediction'

func (*Querier_CompletePrediction_Call) Return

func (*Querier_CompletePrediction_Call) Run

func (*Querier_CompletePrediction_Call) RunAndReturn

type Querier_CreateLoginHistory_Call

type Querier_CreateLoginHistory_Call struct {
	*mock.Call
}

Querier_CreateLoginHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateLoginHistory'

func (*Querier_CreateLoginHistory_Call) Return

func (*Querier_CreateLoginHistory_Call) Run

func (*Querier_CreateLoginHistory_Call) RunAndReturn

type Querier_CreateNewPrediction_Call

type Querier_CreateNewPrediction_Call struct {
	*mock.Call
}

Querier_CreateNewPrediction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateNewPrediction'

func (*Querier_CreateNewPrediction_Call) Return

func (*Querier_CreateNewPrediction_Call) Run

func (*Querier_CreateNewPrediction_Call) RunAndReturn

type Querier_CreateRefreshToken_Call

type Querier_CreateRefreshToken_Call struct {
	*mock.Call
}

Querier_CreateRefreshToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRefreshToken'

func (*Querier_CreateRefreshToken_Call) Return

func (*Querier_CreateRefreshToken_Call) Run

func (*Querier_CreateRefreshToken_Call) RunAndReturn

type Querier_CreateUser_Call

type Querier_CreateUser_Call struct {
	*mock.Call
}

Querier_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser'

func (*Querier_CreateUser_Call) Return

func (*Querier_CreateUser_Call) Run

func (*Querier_CreateUser_Call) RunAndReturn

type Querier_DeleteUser_Call

type Querier_DeleteUser_Call struct {
	*mock.Call
}

Querier_DeleteUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUser'

func (*Querier_DeleteUser_Call) Return

func (*Querier_DeleteUser_Call) Run

func (*Querier_DeleteUser_Call) RunAndReturn

func (_c *Querier_DeleteUser_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) error) *Querier_DeleteUser_Call

type Querier_Expecter

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

func (*Querier_Expecter) CompletePrediction

func (_e *Querier_Expecter) CompletePrediction(ctx interface{}, arg interface{}) *Querier_CompletePrediction_Call

CompletePrediction is a helper method to define mock.On call

  • ctx context.Context
  • arg db.CompletePredictionParams

func (*Querier_Expecter) CreateLoginHistory

func (_e *Querier_Expecter) CreateLoginHistory(ctx interface{}, arg interface{}) *Querier_CreateLoginHistory_Call

CreateLoginHistory is a helper method to define mock.On call

  • ctx context.Context
  • arg db.CreateLoginHistoryParams

func (*Querier_Expecter) CreateNewPrediction

func (_e *Querier_Expecter) CreateNewPrediction(ctx interface{}, arg interface{}) *Querier_CreateNewPrediction_Call

CreateNewPrediction is a helper method to define mock.On call

  • ctx context.Context
  • arg db.CreateNewPredictionParams

func (*Querier_Expecter) CreateRefreshToken

func (_e *Querier_Expecter) CreateRefreshToken(ctx interface{}, arg interface{}) *Querier_CreateRefreshToken_Call

CreateRefreshToken is a helper method to define mock.On call

  • ctx context.Context
  • arg db.CreateRefreshTokenParams

func (*Querier_Expecter) CreateUser

func (_e *Querier_Expecter) CreateUser(ctx interface{}, arg interface{}) *Querier_CreateUser_Call

CreateUser is a helper method to define mock.On call

  • ctx context.Context
  • arg db.CreateUserParams

func (*Querier_Expecter) DeleteUser

func (_e *Querier_Expecter) DeleteUser(ctx interface{}, id interface{}) *Querier_DeleteUser_Call

DeleteUser is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*Querier_Expecter) GetActiveTokensByUser

func (_e *Querier_Expecter) GetActiveTokensByUser(ctx interface{}, userID interface{}) *Querier_GetActiveTokensByUser_Call

GetActiveTokensByUser is a helper method to define mock.On call

  • ctx context.Context
  • userID uuid.UUID

func (*Querier_Expecter) GetLoginHistoryByUser

func (_e *Querier_Expecter) GetLoginHistoryByUser(ctx interface{}, arg interface{}) *Querier_GetLoginHistoryByUser_Call

GetLoginHistoryByUser is a helper method to define mock.On call

  • ctx context.Context
  • arg db.GetLoginHistoryByUserParams

func (*Querier_Expecter) GetPrediction

func (_e *Querier_Expecter) GetPrediction(ctx interface{}, id interface{}) *Querier_GetPrediction_Call

GetPrediction is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*Querier_Expecter) GetPredictionsByUserID

func (_e *Querier_Expecter) GetPredictionsByUserID(ctx interface{}, arg interface{}) *Querier_GetPredictionsByUserID_Call

GetPredictionsByUserID is a helper method to define mock.On call

  • ctx context.Context
  • arg db.GetPredictionsByUserIDParams

func (*Querier_Expecter) GetRefreshTokenByHash

func (_e *Querier_Expecter) GetRefreshTokenByHash(ctx interface{}, tokenHash interface{}) *Querier_GetRefreshTokenByHash_Call

GetRefreshTokenByHash is a helper method to define mock.On call

  • ctx context.Context
  • tokenHash string

func (*Querier_Expecter) GetStatsByUserID

func (_e *Querier_Expecter) GetStatsByUserID(ctx interface{}, userID interface{}) *Querier_GetStatsByUserID_Call

GetStatsByUserID is a helper method to define mock.On call

  • ctx context.Context
  • userID uuid.UUID

func (*Querier_Expecter) GetUserByID

func (_e *Querier_Expecter) GetUserByID(ctx interface{}, id interface{}) *Querier_GetUserByID_Call

GetUserByID is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*Querier_Expecter) GetUserByLogin

func (_e *Querier_Expecter) GetUserByLogin(ctx interface{}, login interface{}) *Querier_GetUserByLogin_Call

GetUserByLogin is a helper method to define mock.On call

  • ctx context.Context
  • login string

func (*Querier_Expecter) RevokeAllUserTokens

func (_e *Querier_Expecter) RevokeAllUserTokens(ctx interface{}, userID interface{}) *Querier_RevokeAllUserTokens_Call

RevokeAllUserTokens is a helper method to define mock.On call

  • ctx context.Context
  • userID uuid.UUID

func (*Querier_Expecter) RevokeRefreshToken

func (_e *Querier_Expecter) RevokeRefreshToken(ctx interface{}, tokenHash interface{}) *Querier_RevokeRefreshToken_Call

RevokeRefreshToken is a helper method to define mock.On call

  • ctx context.Context
  • tokenHash string

func (*Querier_Expecter) UpdateStats

func (_e *Querier_Expecter) UpdateStats(ctx interface{}, arg interface{}) *Querier_UpdateStats_Call

UpdateStats is a helper method to define mock.On call

  • ctx context.Context
  • arg db.UpdateStatsParams

func (*Querier_Expecter) UpdateUser

func (_e *Querier_Expecter) UpdateUser(ctx interface{}, arg interface{}) *Querier_UpdateUser_Call

UpdateUser is a helper method to define mock.On call

  • ctx context.Context
  • arg db.UpdateUserParams

func (*Querier_Expecter) UpdateUserAvatar

func (_e *Querier_Expecter) UpdateUserAvatar(ctx interface{}, arg interface{}) *Querier_UpdateUserAvatar_Call

UpdateUserAvatar is a helper method to define mock.On call

  • ctx context.Context
  • arg db.UpdateUserAvatarParams

func (*Querier_Expecter) UpdateUserPassword

func (_e *Querier_Expecter) UpdateUserPassword(ctx interface{}, arg interface{}) *Querier_UpdateUserPassword_Call

UpdateUserPassword is a helper method to define mock.On call

  • ctx context.Context
  • arg db.UpdateUserPasswordParams

type Querier_GetActiveTokensByUser_Call

type Querier_GetActiveTokensByUser_Call struct {
	*mock.Call
}

Querier_GetActiveTokensByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetActiveTokensByUser'

func (*Querier_GetActiveTokensByUser_Call) Return

func (*Querier_GetActiveTokensByUser_Call) Run

func (*Querier_GetActiveTokensByUser_Call) RunAndReturn

type Querier_GetLoginHistoryByUser_Call

type Querier_GetLoginHistoryByUser_Call struct {
	*mock.Call
}

Querier_GetLoginHistoryByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLoginHistoryByUser'

func (*Querier_GetLoginHistoryByUser_Call) Return

func (*Querier_GetLoginHistoryByUser_Call) Run

func (*Querier_GetLoginHistoryByUser_Call) RunAndReturn

type Querier_GetPrediction_Call

type Querier_GetPrediction_Call struct {
	*mock.Call
}

Querier_GetPrediction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPrediction'

func (*Querier_GetPrediction_Call) Return

func (*Querier_GetPrediction_Call) Run

func (*Querier_GetPrediction_Call) RunAndReturn

type Querier_GetPredictionsByUserID_Call

type Querier_GetPredictionsByUserID_Call struct {
	*mock.Call
}

Querier_GetPredictionsByUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPredictionsByUserID'

func (*Querier_GetPredictionsByUserID_Call) Return

func (*Querier_GetPredictionsByUserID_Call) Run

func (*Querier_GetPredictionsByUserID_Call) RunAndReturn

type Querier_GetRefreshTokenByHash_Call

type Querier_GetRefreshTokenByHash_Call struct {
	*mock.Call
}

Querier_GetRefreshTokenByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRefreshTokenByHash'

func (*Querier_GetRefreshTokenByHash_Call) Return

func (*Querier_GetRefreshTokenByHash_Call) Run

func (*Querier_GetRefreshTokenByHash_Call) RunAndReturn

type Querier_GetStatsByUserID_Call

type Querier_GetStatsByUserID_Call struct {
	*mock.Call
}

Querier_GetStatsByUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatsByUserID'

func (*Querier_GetStatsByUserID_Call) Return

func (*Querier_GetStatsByUserID_Call) Run

func (*Querier_GetStatsByUserID_Call) RunAndReturn

func (_c *Querier_GetStatsByUserID_Call) RunAndReturn(run func(ctx context.Context, userID uuid.UUID) (db.Stat, error)) *Querier_GetStatsByUserID_Call

type Querier_GetUserByID_Call

type Querier_GetUserByID_Call struct {
	*mock.Call
}

Querier_GetUserByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByID'

func (*Querier_GetUserByID_Call) Return

func (*Querier_GetUserByID_Call) Run

func (*Querier_GetUserByID_Call) RunAndReturn

func (_c *Querier_GetUserByID_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) (db.User, error)) *Querier_GetUserByID_Call

type Querier_GetUserByLogin_Call

type Querier_GetUserByLogin_Call struct {
	*mock.Call
}

Querier_GetUserByLogin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByLogin'

func (*Querier_GetUserByLogin_Call) Return

func (*Querier_GetUserByLogin_Call) Run

func (*Querier_GetUserByLogin_Call) RunAndReturn

func (_c *Querier_GetUserByLogin_Call) RunAndReturn(run func(ctx context.Context, login string) (db.User, error)) *Querier_GetUserByLogin_Call

type Querier_RevokeAllUserTokens_Call

type Querier_RevokeAllUserTokens_Call struct {
	*mock.Call
}

Querier_RevokeAllUserTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeAllUserTokens'

func (*Querier_RevokeAllUserTokens_Call) Return

func (*Querier_RevokeAllUserTokens_Call) Run

func (*Querier_RevokeAllUserTokens_Call) RunAndReturn

type Querier_RevokeRefreshToken_Call

type Querier_RevokeRefreshToken_Call struct {
	*mock.Call
}

Querier_RevokeRefreshToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeRefreshToken'

func (*Querier_RevokeRefreshToken_Call) Return

func (*Querier_RevokeRefreshToken_Call) Run

func (*Querier_RevokeRefreshToken_Call) RunAndReturn

func (_c *Querier_RevokeRefreshToken_Call) RunAndReturn(run func(ctx context.Context, tokenHash string) error) *Querier_RevokeRefreshToken_Call

type Querier_UpdateStats_Call

type Querier_UpdateStats_Call struct {
	*mock.Call
}

Querier_UpdateStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStats'

func (*Querier_UpdateStats_Call) Return

func (*Querier_UpdateStats_Call) Run

func (*Querier_UpdateStats_Call) RunAndReturn

type Querier_UpdateUserAvatar_Call

type Querier_UpdateUserAvatar_Call struct {
	*mock.Call
}

Querier_UpdateUserAvatar_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUserAvatar'

func (*Querier_UpdateUserAvatar_Call) Return

func (*Querier_UpdateUserAvatar_Call) Run

func (*Querier_UpdateUserAvatar_Call) RunAndReturn

type Querier_UpdateUserPassword_Call

type Querier_UpdateUserPassword_Call struct {
	*mock.Call
}

Querier_UpdateUserPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUserPassword'

func (*Querier_UpdateUserPassword_Call) Return

func (*Querier_UpdateUserPassword_Call) Run

func (*Querier_UpdateUserPassword_Call) RunAndReturn

type Querier_UpdateUser_Call

type Querier_UpdateUser_Call struct {
	*mock.Call
}

Querier_UpdateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUser'

func (*Querier_UpdateUser_Call) Return

func (*Querier_UpdateUser_Call) Run

func (*Querier_UpdateUser_Call) RunAndReturn

Jump to

Keyboard shortcuts

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