Documentation ¶
Index ¶
- type UserRepositoryMock
- func (mmCheckUsersExistence *UserRepositoryMock) CheckUsersExistence(ctx context.Context, usernames []string) (qp1 *db.Query, err error)
- func (mmCheckUsersExistence *UserRepositoryMock) CheckUsersExistenceAfterCounter() uint64
- func (mmCheckUsersExistence *UserRepositoryMock) CheckUsersExistenceBeforeCounter() uint64
- func (mmCreate *UserRepositoryMock) Create(ctx context.Context, info *model.UserCreateInfo) (i1 int64, qp1 *db.Query, err error)
- func (mmCreate *UserRepositoryMock) CreateAfterCounter() uint64
- func (mmCreate *UserRepositoryMock) CreateBeforeCounter() uint64
- func (mmCreateLog *UserRepositoryMock) CreateLog(ctx context.Context, action string, model string, modelId int64, ...) (err error)
- func (mmCreateLog *UserRepositoryMock) CreateLogAfterCounter() uint64
- func (mmCreateLog *UserRepositoryMock) CreateLogBeforeCounter() uint64
- func (mmDelete *UserRepositoryMock) Delete(ctx context.Context, id int64) (qp1 *db.Query, err error)
- func (mmDelete *UserRepositoryMock) DeleteAfterCounter() uint64
- func (mmDelete *UserRepositoryMock) DeleteBeforeCounter() uint64
- func (mmGet *UserRepositoryMock) Get(ctx context.Context, id int64) (up1 *model.User, qp1 *db.Query, err error)
- func (mmGet *UserRepositoryMock) GetAfterCounter() uint64
- func (mmGet *UserRepositoryMock) GetBeforeCounter() uint64
- func (mmGetByUsername *UserRepositoryMock) GetByUsername(ctx context.Context, username string) (up1 *model.User, qp1 *db.Query, err error)
- func (mmGetByUsername *UserRepositoryMock) GetByUsernameAfterCounter() uint64
- func (mmGetByUsername *UserRepositoryMock) GetByUsernameBeforeCounter() uint64
- func (m *UserRepositoryMock) MinimockCheckUsersExistenceDone() bool
- func (m *UserRepositoryMock) MinimockCheckUsersExistenceInspect()
- func (m *UserRepositoryMock) MinimockCreateDone() bool
- func (m *UserRepositoryMock) MinimockCreateInspect()
- func (m *UserRepositoryMock) MinimockCreateLogDone() bool
- func (m *UserRepositoryMock) MinimockCreateLogInspect()
- func (m *UserRepositoryMock) MinimockDeleteDone() bool
- func (m *UserRepositoryMock) MinimockDeleteInspect()
- func (m *UserRepositoryMock) MinimockFinish()
- func (m *UserRepositoryMock) MinimockGetByUsernameDone() bool
- func (m *UserRepositoryMock) MinimockGetByUsernameInspect()
- func (m *UserRepositoryMock) MinimockGetDone() bool
- func (m *UserRepositoryMock) MinimockGetInspect()
- func (m *UserRepositoryMock) MinimockUpdateDone() bool
- func (m *UserRepositoryMock) MinimockUpdateInspect()
- func (m *UserRepositoryMock) MinimockWait(timeout mm_time.Duration)
- func (mmUpdate *UserRepositoryMock) Update(ctx context.Context, info *model.UserUpdateInfo) (qp1 *db.Query, err error)
- func (mmUpdate *UserRepositoryMock) UpdateAfterCounter() uint64
- func (mmUpdate *UserRepositoryMock) UpdateBeforeCounter() uint64
- type UserRepositoryMockCheckUsersExistenceExpectation
- type UserRepositoryMockCheckUsersExistenceParams
- type UserRepositoryMockCheckUsersExistenceResults
- type UserRepositoryMockCreateExpectation
- type UserRepositoryMockCreateLogExpectation
- type UserRepositoryMockCreateLogParams
- type UserRepositoryMockCreateLogResults
- type UserRepositoryMockCreateParams
- type UserRepositoryMockCreateResults
- type UserRepositoryMockDeleteExpectation
- type UserRepositoryMockDeleteParams
- type UserRepositoryMockDeleteResults
- type UserRepositoryMockGetByUsernameExpectation
- type UserRepositoryMockGetByUsernameParams
- type UserRepositoryMockGetByUsernameResults
- type UserRepositoryMockGetExpectation
- type UserRepositoryMockGetParams
- type UserRepositoryMockGetResults
- type UserRepositoryMockUpdateExpectation
- type UserRepositoryMockUpdateParams
- type UserRepositoryMockUpdateResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepositoryMock ¶
type UserRepositoryMock struct { CheckUsersExistenceMock mUserRepositoryMockCheckUsersExistence CreateMock mUserRepositoryMockCreate CreateLogMock mUserRepositoryMockCreateLog DeleteMock mUserRepositoryMockDelete GetMock mUserRepositoryMockGet GetByUsernameMock mUserRepositoryMockGetByUsername UpdateMock mUserRepositoryMockUpdate // contains filtered or unexported fields }
UserRepositoryMock implements repository.UserRepository
func NewUserRepositoryMock ¶
func NewUserRepositoryMock(t minimock.Tester) *UserRepositoryMock
NewUserRepositoryMock returns a mock for repository.UserRepository
func (*UserRepositoryMock) CheckUsersExistence ¶
func (mmCheckUsersExistence *UserRepositoryMock) CheckUsersExistence(ctx context.Context, usernames []string) (qp1 *db.Query, err error)
CheckUsersExistence implements repository.UserRepository
func (*UserRepositoryMock) CheckUsersExistenceAfterCounter ¶
func (mmCheckUsersExistence *UserRepositoryMock) CheckUsersExistenceAfterCounter() uint64
CheckUsersExistenceAfterCounter returns a count of finished UserRepositoryMock.CheckUsersExistence invocations
func (*UserRepositoryMock) CheckUsersExistenceBeforeCounter ¶
func (mmCheckUsersExistence *UserRepositoryMock) CheckUsersExistenceBeforeCounter() uint64
CheckUsersExistenceBeforeCounter returns a count of UserRepositoryMock.CheckUsersExistence invocations
func (*UserRepositoryMock) Create ¶
func (mmCreate *UserRepositoryMock) Create(ctx context.Context, info *model.UserCreateInfo) (i1 int64, qp1 *db.Query, err error)
Create implements repository.UserRepository
func (*UserRepositoryMock) CreateAfterCounter ¶
func (mmCreate *UserRepositoryMock) CreateAfterCounter() uint64
CreateAfterCounter returns a count of finished UserRepositoryMock.Create invocations
func (*UserRepositoryMock) CreateBeforeCounter ¶
func (mmCreate *UserRepositoryMock) CreateBeforeCounter() uint64
CreateBeforeCounter returns a count of UserRepositoryMock.Create invocations
func (*UserRepositoryMock) CreateLog ¶
func (mmCreateLog *UserRepositoryMock) CreateLog(ctx context.Context, action string, model string, modelId int64, loggedQ *db.Query) (err error)
CreateLog implements repository.UserRepository
func (*UserRepositoryMock) CreateLogAfterCounter ¶
func (mmCreateLog *UserRepositoryMock) CreateLogAfterCounter() uint64
CreateLogAfterCounter returns a count of finished UserRepositoryMock.CreateLog invocations
func (*UserRepositoryMock) CreateLogBeforeCounter ¶
func (mmCreateLog *UserRepositoryMock) CreateLogBeforeCounter() uint64
CreateLogBeforeCounter returns a count of UserRepositoryMock.CreateLog invocations
func (*UserRepositoryMock) Delete ¶
func (mmDelete *UserRepositoryMock) Delete(ctx context.Context, id int64) (qp1 *db.Query, err error)
Delete implements repository.UserRepository
func (*UserRepositoryMock) DeleteAfterCounter ¶
func (mmDelete *UserRepositoryMock) DeleteAfterCounter() uint64
DeleteAfterCounter returns a count of finished UserRepositoryMock.Delete invocations
func (*UserRepositoryMock) DeleteBeforeCounter ¶
func (mmDelete *UserRepositoryMock) DeleteBeforeCounter() uint64
DeleteBeforeCounter returns a count of UserRepositoryMock.Delete invocations
func (*UserRepositoryMock) Get ¶
func (mmGet *UserRepositoryMock) Get(ctx context.Context, id int64) (up1 *model.User, qp1 *db.Query, err error)
Get implements repository.UserRepository
func (*UserRepositoryMock) GetAfterCounter ¶
func (mmGet *UserRepositoryMock) GetAfterCounter() uint64
GetAfterCounter returns a count of finished UserRepositoryMock.Get invocations
func (*UserRepositoryMock) GetBeforeCounter ¶
func (mmGet *UserRepositoryMock) GetBeforeCounter() uint64
GetBeforeCounter returns a count of UserRepositoryMock.Get invocations
func (*UserRepositoryMock) GetByUsername ¶
func (mmGetByUsername *UserRepositoryMock) GetByUsername(ctx context.Context, username string) (up1 *model.User, qp1 *db.Query, err error)
GetByUsername implements repository.UserRepository
func (*UserRepositoryMock) GetByUsernameAfterCounter ¶
func (mmGetByUsername *UserRepositoryMock) GetByUsernameAfterCounter() uint64
GetByUsernameAfterCounter returns a count of finished UserRepositoryMock.GetByUsername invocations
func (*UserRepositoryMock) GetByUsernameBeforeCounter ¶
func (mmGetByUsername *UserRepositoryMock) GetByUsernameBeforeCounter() uint64
GetByUsernameBeforeCounter returns a count of UserRepositoryMock.GetByUsername invocations
func (*UserRepositoryMock) MinimockCheckUsersExistenceDone ¶
func (m *UserRepositoryMock) MinimockCheckUsersExistenceDone() bool
MinimockCheckUsersExistenceDone returns true if the count of the CheckUsersExistence invocations corresponds the number of defined expectations
func (*UserRepositoryMock) MinimockCheckUsersExistenceInspect ¶
func (m *UserRepositoryMock) MinimockCheckUsersExistenceInspect()
MinimockCheckUsersExistenceInspect logs each unmet expectation
func (*UserRepositoryMock) MinimockCreateDone ¶
func (m *UserRepositoryMock) MinimockCreateDone() bool
MinimockCreateDone returns true if the count of the Create invocations corresponds the number of defined expectations
func (*UserRepositoryMock) MinimockCreateInspect ¶
func (m *UserRepositoryMock) MinimockCreateInspect()
MinimockCreateInspect logs each unmet expectation
func (*UserRepositoryMock) MinimockCreateLogDone ¶
func (m *UserRepositoryMock) MinimockCreateLogDone() bool
MinimockCreateLogDone returns true if the count of the CreateLog invocations corresponds the number of defined expectations
func (*UserRepositoryMock) MinimockCreateLogInspect ¶
func (m *UserRepositoryMock) MinimockCreateLogInspect()
MinimockCreateLogInspect logs each unmet expectation
func (*UserRepositoryMock) MinimockDeleteDone ¶
func (m *UserRepositoryMock) MinimockDeleteDone() bool
MinimockDeleteDone returns true if the count of the Delete invocations corresponds the number of defined expectations
func (*UserRepositoryMock) MinimockDeleteInspect ¶
func (m *UserRepositoryMock) MinimockDeleteInspect()
MinimockDeleteInspect logs each unmet expectation
func (*UserRepositoryMock) MinimockFinish ¶
func (m *UserRepositoryMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*UserRepositoryMock) MinimockGetByUsernameDone ¶
func (m *UserRepositoryMock) MinimockGetByUsernameDone() bool
MinimockGetByUsernameDone returns true if the count of the GetByUsername invocations corresponds the number of defined expectations
func (*UserRepositoryMock) MinimockGetByUsernameInspect ¶
func (m *UserRepositoryMock) MinimockGetByUsernameInspect()
MinimockGetByUsernameInspect logs each unmet expectation
func (*UserRepositoryMock) MinimockGetDone ¶
func (m *UserRepositoryMock) MinimockGetDone() bool
MinimockGetDone returns true if the count of the Get invocations corresponds the number of defined expectations
func (*UserRepositoryMock) MinimockGetInspect ¶
func (m *UserRepositoryMock) MinimockGetInspect()
MinimockGetInspect logs each unmet expectation
func (*UserRepositoryMock) MinimockUpdateDone ¶
func (m *UserRepositoryMock) MinimockUpdateDone() bool
MinimockUpdateDone returns true if the count of the Update invocations corresponds the number of defined expectations
func (*UserRepositoryMock) MinimockUpdateInspect ¶
func (m *UserRepositoryMock) MinimockUpdateInspect()
MinimockUpdateInspect logs each unmet expectation
func (*UserRepositoryMock) MinimockWait ¶
func (m *UserRepositoryMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*UserRepositoryMock) Update ¶
func (mmUpdate *UserRepositoryMock) Update(ctx context.Context, info *model.UserUpdateInfo) (qp1 *db.Query, err error)
Update implements repository.UserRepository
func (*UserRepositoryMock) UpdateAfterCounter ¶
func (mmUpdate *UserRepositoryMock) UpdateAfterCounter() uint64
UpdateAfterCounter returns a count of finished UserRepositoryMock.Update invocations
func (*UserRepositoryMock) UpdateBeforeCounter ¶
func (mmUpdate *UserRepositoryMock) UpdateBeforeCounter() uint64
UpdateBeforeCounter returns a count of UserRepositoryMock.Update invocations
type UserRepositoryMockCheckUsersExistenceExpectation ¶
type UserRepositoryMockCheckUsersExistenceExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRepositoryMockCheckUsersExistenceExpectation specifies expectation struct of the UserRepository.CheckUsersExistence
func (*UserRepositoryMockCheckUsersExistenceExpectation) Then ¶
func (e *UserRepositoryMockCheckUsersExistenceExpectation) Then(qp1 *db.Query, err error) *UserRepositoryMock
Then sets up UserRepository.CheckUsersExistence return parameters for the expectation previously defined by the When method
type UserRepositoryMockCheckUsersExistenceParams ¶
type UserRepositoryMockCheckUsersExistenceParams struct {
// contains filtered or unexported fields
}
UserRepositoryMockCheckUsersExistenceParams contains parameters of the UserRepository.CheckUsersExistence
type UserRepositoryMockCheckUsersExistenceResults ¶
type UserRepositoryMockCheckUsersExistenceResults struct {
// contains filtered or unexported fields
}
UserRepositoryMockCheckUsersExistenceResults contains results of the UserRepository.CheckUsersExistence
type UserRepositoryMockCreateExpectation ¶
type UserRepositoryMockCreateExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRepositoryMockCreateExpectation specifies expectation struct of the UserRepository.Create
func (*UserRepositoryMockCreateExpectation) Then ¶
func (e *UserRepositoryMockCreateExpectation) Then(i1 int64, qp1 *db.Query, err error) *UserRepositoryMock
Then sets up UserRepository.Create return parameters for the expectation previously defined by the When method
type UserRepositoryMockCreateLogExpectation ¶
type UserRepositoryMockCreateLogExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRepositoryMockCreateLogExpectation specifies expectation struct of the UserRepository.CreateLog
func (*UserRepositoryMockCreateLogExpectation) Then ¶
func (e *UserRepositoryMockCreateLogExpectation) Then(err error) *UserRepositoryMock
Then sets up UserRepository.CreateLog return parameters for the expectation previously defined by the When method
type UserRepositoryMockCreateLogParams ¶
type UserRepositoryMockCreateLogParams struct {
// contains filtered or unexported fields
}
UserRepositoryMockCreateLogParams contains parameters of the UserRepository.CreateLog
type UserRepositoryMockCreateLogResults ¶
type UserRepositoryMockCreateLogResults struct {
// contains filtered or unexported fields
}
UserRepositoryMockCreateLogResults contains results of the UserRepository.CreateLog
type UserRepositoryMockCreateParams ¶
type UserRepositoryMockCreateParams struct {
// contains filtered or unexported fields
}
UserRepositoryMockCreateParams contains parameters of the UserRepository.Create
type UserRepositoryMockCreateResults ¶
type UserRepositoryMockCreateResults struct {
// contains filtered or unexported fields
}
UserRepositoryMockCreateResults contains results of the UserRepository.Create
type UserRepositoryMockDeleteExpectation ¶
type UserRepositoryMockDeleteExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRepositoryMockDeleteExpectation specifies expectation struct of the UserRepository.Delete
func (*UserRepositoryMockDeleteExpectation) Then ¶
func (e *UserRepositoryMockDeleteExpectation) Then(qp1 *db.Query, err error) *UserRepositoryMock
Then sets up UserRepository.Delete return parameters for the expectation previously defined by the When method
type UserRepositoryMockDeleteParams ¶
type UserRepositoryMockDeleteParams struct {
// contains filtered or unexported fields
}
UserRepositoryMockDeleteParams contains parameters of the UserRepository.Delete
type UserRepositoryMockDeleteResults ¶
type UserRepositoryMockDeleteResults struct {
// contains filtered or unexported fields
}
UserRepositoryMockDeleteResults contains results of the UserRepository.Delete
type UserRepositoryMockGetByUsernameExpectation ¶
type UserRepositoryMockGetByUsernameExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRepositoryMockGetByUsernameExpectation specifies expectation struct of the UserRepository.GetByUsername
func (*UserRepositoryMockGetByUsernameExpectation) Then ¶
func (e *UserRepositoryMockGetByUsernameExpectation) Then(up1 *model.User, qp1 *db.Query, err error) *UserRepositoryMock
Then sets up UserRepository.GetByUsername return parameters for the expectation previously defined by the When method
type UserRepositoryMockGetByUsernameParams ¶
type UserRepositoryMockGetByUsernameParams struct {
// contains filtered or unexported fields
}
UserRepositoryMockGetByUsernameParams contains parameters of the UserRepository.GetByUsername
type UserRepositoryMockGetByUsernameResults ¶
type UserRepositoryMockGetByUsernameResults struct {
// contains filtered or unexported fields
}
UserRepositoryMockGetByUsernameResults contains results of the UserRepository.GetByUsername
type UserRepositoryMockGetExpectation ¶
type UserRepositoryMockGetExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRepositoryMockGetExpectation specifies expectation struct of the UserRepository.Get
func (*UserRepositoryMockGetExpectation) Then ¶
func (e *UserRepositoryMockGetExpectation) Then(up1 *model.User, qp1 *db.Query, err error) *UserRepositoryMock
Then sets up UserRepository.Get return parameters for the expectation previously defined by the When method
type UserRepositoryMockGetParams ¶
type UserRepositoryMockGetParams struct {
// contains filtered or unexported fields
}
UserRepositoryMockGetParams contains parameters of the UserRepository.Get
type UserRepositoryMockGetResults ¶
type UserRepositoryMockGetResults struct {
// contains filtered or unexported fields
}
UserRepositoryMockGetResults contains results of the UserRepository.Get
type UserRepositoryMockUpdateExpectation ¶
type UserRepositoryMockUpdateExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRepositoryMockUpdateExpectation specifies expectation struct of the UserRepository.Update
func (*UserRepositoryMockUpdateExpectation) Then ¶
func (e *UserRepositoryMockUpdateExpectation) Then(qp1 *db.Query, err error) *UserRepositoryMock
Then sets up UserRepository.Update return parameters for the expectation previously defined by the When method
type UserRepositoryMockUpdateParams ¶
type UserRepositoryMockUpdateParams struct {
// contains filtered or unexported fields
}
UserRepositoryMockUpdateParams contains parameters of the UserRepository.Update
type UserRepositoryMockUpdateResults ¶
type UserRepositoryMockUpdateResults struct {
// contains filtered or unexported fields
}
UserRepositoryMockUpdateResults contains results of the UserRepository.Update