clientmocks

package
v0.0.0-...-33e7104 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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) Check

func (mmCheck *AuthServiceMock) Check(ctx context.Context, role ...model.UserRole) (err error)

Check implements 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

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

Jump to

Keyboard shortcuts

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