mocks

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuditLogRepository

type MockAuditLogRepository struct {
	mock.Mock
}

MockAuditLogRepository is an autogenerated mock type for the AuditLogRepository type

func NewMockAuditLogRepository

func NewMockAuditLogRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuditLogRepository

NewMockAuditLogRepository creates a new instance of MockAuditLogRepository. 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 (*MockAuditLogRepository) Create

func (_mock *MockAuditLogRepository) Create(ctx context.Context, auditLog *domain.AuditLog) error

Create provides a mock function for the type MockAuditLogRepository

func (*MockAuditLogRepository) DeleteOlderThan added in v0.2.0

func (_mock *MockAuditLogRepository) DeleteOlderThan(ctx context.Context, olderThan time.Time, dryRun bool) (int64, error)

DeleteOlderThan provides a mock function for the type MockAuditLogRepository

func (*MockAuditLogRepository) EXPECT

func (*MockAuditLogRepository) List

func (_mock *MockAuditLogRepository) List(ctx context.Context, offset int, limit int, createdAtFrom *time.Time, createdAtTo *time.Time) ([]*domain.AuditLog, error)

List provides a mock function for the type MockAuditLogRepository

type MockAuditLogRepository_Create_Call

type MockAuditLogRepository_Create_Call struct {
	*mock.Call
}

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

func (*MockAuditLogRepository_Create_Call) Return

func (*MockAuditLogRepository_Create_Call) Run

func (*MockAuditLogRepository_Create_Call) RunAndReturn

type MockAuditLogRepository_DeleteOlderThan_Call added in v0.2.0

type MockAuditLogRepository_DeleteOlderThan_Call struct {
	*mock.Call
}

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

func (*MockAuditLogRepository_DeleteOlderThan_Call) Return added in v0.2.0

func (*MockAuditLogRepository_DeleteOlderThan_Call) Run added in v0.2.0

func (*MockAuditLogRepository_DeleteOlderThan_Call) RunAndReturn added in v0.2.0

type MockAuditLogRepository_Expecter

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

func (*MockAuditLogRepository_Expecter) Create

func (_e *MockAuditLogRepository_Expecter) Create(ctx interface{}, auditLog interface{}) *MockAuditLogRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • auditLog *domain.AuditLog

func (*MockAuditLogRepository_Expecter) DeleteOlderThan added in v0.2.0

func (_e *MockAuditLogRepository_Expecter) DeleteOlderThan(ctx interface{}, olderThan interface{}, dryRun interface{}) *MockAuditLogRepository_DeleteOlderThan_Call

DeleteOlderThan is a helper method to define mock.On call

  • ctx context.Context
  • olderThan time.Time
  • dryRun bool

func (*MockAuditLogRepository_Expecter) List

func (_e *MockAuditLogRepository_Expecter) List(ctx interface{}, offset interface{}, limit interface{}, createdAtFrom interface{}, createdAtTo interface{}) *MockAuditLogRepository_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • offset int
  • limit int
  • createdAtFrom *time.Time
  • createdAtTo *time.Time

type MockAuditLogRepository_List_Call

type MockAuditLogRepository_List_Call struct {
	*mock.Call
}

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

func (*MockAuditLogRepository_List_Call) Return

func (*MockAuditLogRepository_List_Call) Run

func (_c *MockAuditLogRepository_List_Call) Run(run func(ctx context.Context, offset int, limit int, createdAtFrom *time.Time, createdAtTo *time.Time)) *MockAuditLogRepository_List_Call

func (*MockAuditLogRepository_List_Call) RunAndReturn

func (_c *MockAuditLogRepository_List_Call) RunAndReturn(run func(ctx context.Context, offset int, limit int, createdAtFrom *time.Time, createdAtTo *time.Time) ([]*domain.AuditLog, error)) *MockAuditLogRepository_List_Call

type MockAuditLogUseCase

type MockAuditLogUseCase struct {
	mock.Mock
}

MockAuditLogUseCase is an autogenerated mock type for the AuditLogUseCase type

func NewMockAuditLogUseCase

func NewMockAuditLogUseCase(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuditLogUseCase

NewMockAuditLogUseCase creates a new instance of MockAuditLogUseCase. 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 (*MockAuditLogUseCase) Create

func (_mock *MockAuditLogUseCase) Create(ctx context.Context, requestID uuid.UUID, clientID uuid.UUID, capability domain.Capability, path string, metadata map[string]any) error

Create provides a mock function for the type MockAuditLogUseCase

func (*MockAuditLogUseCase) DeleteOlderThan added in v0.2.0

func (_mock *MockAuditLogUseCase) DeleteOlderThan(ctx context.Context, days int, dryRun bool) (int64, error)

DeleteOlderThan provides a mock function for the type MockAuditLogUseCase

func (*MockAuditLogUseCase) EXPECT

func (*MockAuditLogUseCase) List

func (_mock *MockAuditLogUseCase) List(ctx context.Context, offset int, limit int, createdAtFrom *time.Time, createdAtTo *time.Time) ([]*domain.AuditLog, error)

List provides a mock function for the type MockAuditLogUseCase

type MockAuditLogUseCase_Create_Call

type MockAuditLogUseCase_Create_Call struct {
	*mock.Call
}

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

func (*MockAuditLogUseCase_Create_Call) Return

func (*MockAuditLogUseCase_Create_Call) Run

func (_c *MockAuditLogUseCase_Create_Call) Run(run func(ctx context.Context, requestID uuid.UUID, clientID uuid.UUID, capability domain.Capability, path string, metadata map[string]any)) *MockAuditLogUseCase_Create_Call

func (*MockAuditLogUseCase_Create_Call) RunAndReturn

func (_c *MockAuditLogUseCase_Create_Call) RunAndReturn(run func(ctx context.Context, requestID uuid.UUID, clientID uuid.UUID, capability domain.Capability, path string, metadata map[string]any) error) *MockAuditLogUseCase_Create_Call

type MockAuditLogUseCase_DeleteOlderThan_Call added in v0.2.0

type MockAuditLogUseCase_DeleteOlderThan_Call struct {
	*mock.Call
}

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

func (*MockAuditLogUseCase_DeleteOlderThan_Call) Return added in v0.2.0

func (*MockAuditLogUseCase_DeleteOlderThan_Call) Run added in v0.2.0

func (*MockAuditLogUseCase_DeleteOlderThan_Call) RunAndReturn added in v0.2.0

type MockAuditLogUseCase_Expecter

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

func (*MockAuditLogUseCase_Expecter) Create

func (_e *MockAuditLogUseCase_Expecter) Create(ctx interface{}, requestID interface{}, clientID interface{}, capability interface{}, path interface{}, metadata interface{}) *MockAuditLogUseCase_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • requestID uuid.UUID
  • clientID uuid.UUID
  • capability domain.Capability
  • path string
  • metadata map[string]any

func (*MockAuditLogUseCase_Expecter) DeleteOlderThan added in v0.2.0

func (_e *MockAuditLogUseCase_Expecter) DeleteOlderThan(ctx interface{}, days interface{}, dryRun interface{}) *MockAuditLogUseCase_DeleteOlderThan_Call

DeleteOlderThan is a helper method to define mock.On call

  • ctx context.Context
  • days int
  • dryRun bool

func (*MockAuditLogUseCase_Expecter) List

func (_e *MockAuditLogUseCase_Expecter) List(ctx interface{}, offset interface{}, limit interface{}, createdAtFrom interface{}, createdAtTo interface{}) *MockAuditLogUseCase_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • offset int
  • limit int
  • createdAtFrom *time.Time
  • createdAtTo *time.Time

type MockAuditLogUseCase_List_Call

type MockAuditLogUseCase_List_Call struct {
	*mock.Call
}

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

func (*MockAuditLogUseCase_List_Call) Return

func (*MockAuditLogUseCase_List_Call) Run

func (_c *MockAuditLogUseCase_List_Call) Run(run func(ctx context.Context, offset int, limit int, createdAtFrom *time.Time, createdAtTo *time.Time)) *MockAuditLogUseCase_List_Call

func (*MockAuditLogUseCase_List_Call) RunAndReturn

func (_c *MockAuditLogUseCase_List_Call) RunAndReturn(run func(ctx context.Context, offset int, limit int, createdAtFrom *time.Time, createdAtTo *time.Time) ([]*domain.AuditLog, error)) *MockAuditLogUseCase_List_Call

type MockClientRepository

type MockClientRepository struct {
	mock.Mock
}

MockClientRepository is an autogenerated mock type for the ClientRepository type

func NewMockClientRepository

func NewMockClientRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClientRepository

NewMockClientRepository creates a new instance of MockClientRepository. 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 (*MockClientRepository) Create

func (_mock *MockClientRepository) Create(ctx context.Context, client *domain.Client) error

Create provides a mock function for the type MockClientRepository

func (*MockClientRepository) EXPECT

func (*MockClientRepository) Get

func (_mock *MockClientRepository) Get(ctx context.Context, clientID uuid.UUID) (*domain.Client, error)

Get provides a mock function for the type MockClientRepository

func (*MockClientRepository) List

func (_mock *MockClientRepository) List(ctx context.Context, offset int, limit int) ([]*domain.Client, error)

List provides a mock function for the type MockClientRepository

func (*MockClientRepository) Update

func (_mock *MockClientRepository) Update(ctx context.Context, client *domain.Client) error

Update provides a mock function for the type MockClientRepository

type MockClientRepository_Create_Call

type MockClientRepository_Create_Call struct {
	*mock.Call
}

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

func (*MockClientRepository_Create_Call) Return

func (*MockClientRepository_Create_Call) Run

func (*MockClientRepository_Create_Call) RunAndReturn

type MockClientRepository_Expecter

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

func (*MockClientRepository_Expecter) Create

func (_e *MockClientRepository_Expecter) Create(ctx interface{}, client interface{}) *MockClientRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • client *domain.Client

func (*MockClientRepository_Expecter) Get

func (_e *MockClientRepository_Expecter) Get(ctx interface{}, clientID interface{}) *MockClientRepository_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • clientID uuid.UUID

func (*MockClientRepository_Expecter) List

func (_e *MockClientRepository_Expecter) List(ctx interface{}, offset interface{}, limit interface{}) *MockClientRepository_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • offset int
  • limit int

func (*MockClientRepository_Expecter) Update

func (_e *MockClientRepository_Expecter) Update(ctx interface{}, client interface{}) *MockClientRepository_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • client *domain.Client

type MockClientRepository_Get_Call

type MockClientRepository_Get_Call struct {
	*mock.Call
}

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

func (*MockClientRepository_Get_Call) Return

func (*MockClientRepository_Get_Call) Run

func (*MockClientRepository_Get_Call) RunAndReturn

type MockClientRepository_List_Call

type MockClientRepository_List_Call struct {
	*mock.Call
}

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

func (*MockClientRepository_List_Call) Return

func (*MockClientRepository_List_Call) Run

func (*MockClientRepository_List_Call) RunAndReturn

func (_c *MockClientRepository_List_Call) RunAndReturn(run func(ctx context.Context, offset int, limit int) ([]*domain.Client, error)) *MockClientRepository_List_Call

type MockClientRepository_Update_Call

type MockClientRepository_Update_Call struct {
	*mock.Call
}

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

func (*MockClientRepository_Update_Call) Return

func (*MockClientRepository_Update_Call) Run

func (*MockClientRepository_Update_Call) RunAndReturn

type MockClientUseCase

type MockClientUseCase struct {
	mock.Mock
}

MockClientUseCase is an autogenerated mock type for the ClientUseCase type

func NewMockClientUseCase

func NewMockClientUseCase(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClientUseCase

NewMockClientUseCase creates a new instance of MockClientUseCase. 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 (*MockClientUseCase) Create

func (_mock *MockClientUseCase) Create(ctx context.Context, createClientInput *domain.CreateClientInput) (*domain.CreateClientOutput, error)

Create provides a mock function for the type MockClientUseCase

func (*MockClientUseCase) Delete

func (_mock *MockClientUseCase) Delete(ctx context.Context, clientID uuid.UUID) error

Delete provides a mock function for the type MockClientUseCase

func (*MockClientUseCase) EXPECT

func (*MockClientUseCase) Get

func (_mock *MockClientUseCase) Get(ctx context.Context, clientID uuid.UUID) (*domain.Client, error)

Get provides a mock function for the type MockClientUseCase

func (*MockClientUseCase) List

func (_mock *MockClientUseCase) List(ctx context.Context, offset int, limit int) ([]*domain.Client, error)

List provides a mock function for the type MockClientUseCase

func (*MockClientUseCase) Update

func (_mock *MockClientUseCase) Update(ctx context.Context, clientID uuid.UUID, updateClientInput *domain.UpdateClientInput) error

Update provides a mock function for the type MockClientUseCase

type MockClientUseCase_Create_Call

type MockClientUseCase_Create_Call struct {
	*mock.Call
}

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

func (*MockClientUseCase_Create_Call) Return

func (*MockClientUseCase_Create_Call) Run

func (*MockClientUseCase_Create_Call) RunAndReturn

type MockClientUseCase_Delete_Call

type MockClientUseCase_Delete_Call struct {
	*mock.Call
}

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

func (*MockClientUseCase_Delete_Call) Return

func (*MockClientUseCase_Delete_Call) Run

func (*MockClientUseCase_Delete_Call) RunAndReturn

func (_c *MockClientUseCase_Delete_Call) RunAndReturn(run func(ctx context.Context, clientID uuid.UUID) error) *MockClientUseCase_Delete_Call

type MockClientUseCase_Expecter

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

func (*MockClientUseCase_Expecter) Create

func (_e *MockClientUseCase_Expecter) Create(ctx interface{}, createClientInput interface{}) *MockClientUseCase_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • createClientInput *domain.CreateClientInput

func (*MockClientUseCase_Expecter) Delete

func (_e *MockClientUseCase_Expecter) Delete(ctx interface{}, clientID interface{}) *MockClientUseCase_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • clientID uuid.UUID

func (*MockClientUseCase_Expecter) Get

func (_e *MockClientUseCase_Expecter) Get(ctx interface{}, clientID interface{}) *MockClientUseCase_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • clientID uuid.UUID

func (*MockClientUseCase_Expecter) List

func (_e *MockClientUseCase_Expecter) List(ctx interface{}, offset interface{}, limit interface{}) *MockClientUseCase_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • offset int
  • limit int

func (*MockClientUseCase_Expecter) Update

func (_e *MockClientUseCase_Expecter) Update(ctx interface{}, clientID interface{}, updateClientInput interface{}) *MockClientUseCase_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • clientID uuid.UUID
  • updateClientInput *domain.UpdateClientInput

type MockClientUseCase_Get_Call

type MockClientUseCase_Get_Call struct {
	*mock.Call
}

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

func (*MockClientUseCase_Get_Call) Return

func (*MockClientUseCase_Get_Call) Run

func (*MockClientUseCase_Get_Call) RunAndReturn

func (_c *MockClientUseCase_Get_Call) RunAndReturn(run func(ctx context.Context, clientID uuid.UUID) (*domain.Client, error)) *MockClientUseCase_Get_Call

type MockClientUseCase_List_Call

type MockClientUseCase_List_Call struct {
	*mock.Call
}

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

func (*MockClientUseCase_List_Call) Return

func (*MockClientUseCase_List_Call) Run

func (_c *MockClientUseCase_List_Call) Run(run func(ctx context.Context, offset int, limit int)) *MockClientUseCase_List_Call

func (*MockClientUseCase_List_Call) RunAndReturn

func (_c *MockClientUseCase_List_Call) RunAndReturn(run func(ctx context.Context, offset int, limit int) ([]*domain.Client, error)) *MockClientUseCase_List_Call

type MockClientUseCase_Update_Call

type MockClientUseCase_Update_Call struct {
	*mock.Call
}

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

func (*MockClientUseCase_Update_Call) Return

func (*MockClientUseCase_Update_Call) Run

func (_c *MockClientUseCase_Update_Call) Run(run func(ctx context.Context, clientID uuid.UUID, updateClientInput *domain.UpdateClientInput)) *MockClientUseCase_Update_Call

func (*MockClientUseCase_Update_Call) RunAndReturn

func (_c *MockClientUseCase_Update_Call) RunAndReturn(run func(ctx context.Context, clientID uuid.UUID, updateClientInput *domain.UpdateClientInput) error) *MockClientUseCase_Update_Call

type MockTokenRepository

type MockTokenRepository struct {
	mock.Mock
}

MockTokenRepository is an autogenerated mock type for the TokenRepository type

func NewMockTokenRepository

func NewMockTokenRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTokenRepository

NewMockTokenRepository creates a new instance of MockTokenRepository. 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 (*MockTokenRepository) Create

func (_mock *MockTokenRepository) Create(ctx context.Context, token *domain.Token) error

Create provides a mock function for the type MockTokenRepository

func (*MockTokenRepository) EXPECT

func (*MockTokenRepository) Get

func (_mock *MockTokenRepository) Get(ctx context.Context, tokenID uuid.UUID) (*domain.Token, error)

Get provides a mock function for the type MockTokenRepository

func (*MockTokenRepository) GetByTokenHash

func (_mock *MockTokenRepository) GetByTokenHash(ctx context.Context, tokenHash string) (*domain.Token, error)

GetByTokenHash provides a mock function for the type MockTokenRepository

func (*MockTokenRepository) Update

func (_mock *MockTokenRepository) Update(ctx context.Context, token *domain.Token) error

Update provides a mock function for the type MockTokenRepository

type MockTokenRepository_Create_Call

type MockTokenRepository_Create_Call struct {
	*mock.Call
}

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

func (*MockTokenRepository_Create_Call) Return

func (*MockTokenRepository_Create_Call) Run

func (*MockTokenRepository_Create_Call) RunAndReturn

type MockTokenRepository_Expecter

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

func (*MockTokenRepository_Expecter) Create

func (_e *MockTokenRepository_Expecter) Create(ctx interface{}, token interface{}) *MockTokenRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • token *domain.Token

func (*MockTokenRepository_Expecter) Get

func (_e *MockTokenRepository_Expecter) Get(ctx interface{}, tokenID interface{}) *MockTokenRepository_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • tokenID uuid.UUID

func (*MockTokenRepository_Expecter) GetByTokenHash

func (_e *MockTokenRepository_Expecter) GetByTokenHash(ctx interface{}, tokenHash interface{}) *MockTokenRepository_GetByTokenHash_Call

GetByTokenHash is a helper method to define mock.On call

  • ctx context.Context
  • tokenHash string

func (*MockTokenRepository_Expecter) Update

func (_e *MockTokenRepository_Expecter) Update(ctx interface{}, token interface{}) *MockTokenRepository_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • token *domain.Token

type MockTokenRepository_GetByTokenHash_Call

type MockTokenRepository_GetByTokenHash_Call struct {
	*mock.Call
}

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

func (*MockTokenRepository_GetByTokenHash_Call) Return

func (*MockTokenRepository_GetByTokenHash_Call) Run

func (*MockTokenRepository_GetByTokenHash_Call) RunAndReturn

type MockTokenRepository_Get_Call

type MockTokenRepository_Get_Call struct {
	*mock.Call
}

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

func (*MockTokenRepository_Get_Call) Return

func (*MockTokenRepository_Get_Call) Run

func (*MockTokenRepository_Get_Call) RunAndReturn

func (_c *MockTokenRepository_Get_Call) RunAndReturn(run func(ctx context.Context, tokenID uuid.UUID) (*domain.Token, error)) *MockTokenRepository_Get_Call

type MockTokenRepository_Update_Call

type MockTokenRepository_Update_Call struct {
	*mock.Call
}

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

func (*MockTokenRepository_Update_Call) Return

func (*MockTokenRepository_Update_Call) Run

func (*MockTokenRepository_Update_Call) RunAndReturn

type MockTokenUseCase

type MockTokenUseCase struct {
	mock.Mock
}

MockTokenUseCase is an autogenerated mock type for the TokenUseCase type

func NewMockTokenUseCase

func NewMockTokenUseCase(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTokenUseCase

NewMockTokenUseCase creates a new instance of MockTokenUseCase. 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 (*MockTokenUseCase) Authenticate

func (_mock *MockTokenUseCase) Authenticate(ctx context.Context, tokenHash string) (*domain.Client, error)

Authenticate provides a mock function for the type MockTokenUseCase

func (*MockTokenUseCase) EXPECT

func (*MockTokenUseCase) Issue

func (_mock *MockTokenUseCase) Issue(ctx context.Context, issueTokenInput *domain.IssueTokenInput) (*domain.IssueTokenOutput, error)

Issue provides a mock function for the type MockTokenUseCase

type MockTokenUseCase_Authenticate_Call

type MockTokenUseCase_Authenticate_Call struct {
	*mock.Call
}

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

func (*MockTokenUseCase_Authenticate_Call) Return

func (*MockTokenUseCase_Authenticate_Call) Run

func (*MockTokenUseCase_Authenticate_Call) RunAndReturn

type MockTokenUseCase_Expecter

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

func (*MockTokenUseCase_Expecter) Authenticate

func (_e *MockTokenUseCase_Expecter) Authenticate(ctx interface{}, tokenHash interface{}) *MockTokenUseCase_Authenticate_Call

Authenticate is a helper method to define mock.On call

  • ctx context.Context
  • tokenHash string

func (*MockTokenUseCase_Expecter) Issue

func (_e *MockTokenUseCase_Expecter) Issue(ctx interface{}, issueTokenInput interface{}) *MockTokenUseCase_Issue_Call

Issue is a helper method to define mock.On call

  • ctx context.Context
  • issueTokenInput *domain.IssueTokenInput

type MockTokenUseCase_Issue_Call

type MockTokenUseCase_Issue_Call struct {
	*mock.Call
}

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

func (*MockTokenUseCase_Issue_Call) Return

func (*MockTokenUseCase_Issue_Call) Run

func (*MockTokenUseCase_Issue_Call) RunAndReturn

Jump to

Keyboard shortcuts

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