Documentation ¶
Index ¶
- type AuthServiceMock
- func (mmCheck *AuthServiceMock) Check(ctx context.Context, role ...model.UserRole) (err error)
- func (mmCheck *AuthServiceMock) CheckAfterCounter() uint64
- func (mmCheck *AuthServiceMock) CheckBeforeCounter() uint64
- func (m *AuthServiceMock) MinimockCheckDone() bool
- func (m *AuthServiceMock) MinimockCheckInspect()
- func (m *AuthServiceMock) MinimockFinish()
- func (m *AuthServiceMock) MinimockWait(timeout mm_time.Duration)
- type AuthServiceMockCheckExpectation
- type AuthServiceMockCheckParams
- type AuthServiceMockCheckResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthServiceMock ¶
type AuthServiceMock struct { CheckMock mAuthServiceMockCheck // contains filtered or unexported fields }
AuthServiceMock implements client.AuthService
func NewAuthServiceMock ¶
func NewAuthServiceMock(t minimock.Tester) *AuthServiceMock
NewAuthServiceMock returns a mock for client.AuthService
func (*AuthServiceMock) CheckAfterCounter ¶
func (mmCheck *AuthServiceMock) CheckAfterCounter() uint64
CheckAfterCounter returns a count of finished AuthServiceMock.Check invocations
func (*AuthServiceMock) CheckBeforeCounter ¶
func (mmCheck *AuthServiceMock) CheckBeforeCounter() uint64
CheckBeforeCounter returns a count of AuthServiceMock.Check invocations
func (*AuthServiceMock) MinimockCheckDone ¶
func (m *AuthServiceMock) MinimockCheckDone() bool
MinimockCheckDone returns true if the count of the Check invocations corresponds the number of defined expectations
func (*AuthServiceMock) MinimockCheckInspect ¶
func (m *AuthServiceMock) MinimockCheckInspect()
MinimockCheckInspect logs each unmet expectation
func (*AuthServiceMock) MinimockFinish ¶
func (m *AuthServiceMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*AuthServiceMock) MinimockWait ¶
func (m *AuthServiceMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type AuthServiceMockCheckExpectation ¶
type AuthServiceMockCheckExpectation struct { Counter uint64 // contains filtered or unexported fields }
AuthServiceMockCheckExpectation specifies expectation struct of the AuthService.Check
func (*AuthServiceMockCheckExpectation) Then ¶
func (e *AuthServiceMockCheckExpectation) Then(err error) *AuthServiceMock
Then sets up AuthService.Check return parameters for the expectation previously defined by the When method
type AuthServiceMockCheckParams ¶
type AuthServiceMockCheckParams struct {
// contains filtered or unexported fields
}
AuthServiceMockCheckParams contains parameters of the AuthService.Check
type AuthServiceMockCheckResults ¶
type AuthServiceMockCheckResults struct {
// contains filtered or unexported fields
}
AuthServiceMockCheckResults contains results of the AuthService.Check