mocks

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mocks provides a mock implementation of the invitations repository.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

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

func (_m *Repository) Create(ctx context.Context, invitation invitations.Invitation) error

Create provides a mock function with given fields: ctx, invitation

func (*Repository) Delete

func (_m *Repository) Delete(ctx context.Context, userID string, domainID string) error

Delete provides a mock function with given fields: ctx, userID, domainID

func (*Repository) Retrieve

func (_m *Repository) Retrieve(ctx context.Context, userID string, domainID string) (invitations.Invitation, error)

Retrieve provides a mock function with given fields: ctx, userID, domainID

func (*Repository) RetrieveAll

func (_m *Repository) RetrieveAll(ctx context.Context, page invitations.Page) (invitations.InvitationPage, error)

RetrieveAll provides a mock function with given fields: ctx, page

func (*Repository) UpdateConfirmation

func (_m *Repository) UpdateConfirmation(ctx context.Context, invitation invitations.Invitation) error

UpdateConfirmation provides a mock function with given fields: ctx, invitation

func (*Repository) UpdateRejection

func (_m *Repository) UpdateRejection(ctx context.Context, invitation invitations.Invitation) error

UpdateRejection provides a mock function with given fields: ctx, invitation

func (*Repository) UpdateToken

func (_m *Repository) UpdateToken(ctx context.Context, invitation invitations.Invitation) error

UpdateToken provides a mock function with given fields: ctx, invitation

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

NewService creates a new instance of Service. 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 (*Service) AcceptInvitation

func (_m *Service) AcceptInvitation(ctx context.Context, session authn.Session, domainID string) error

AcceptInvitation provides a mock function with given fields: ctx, session, domainID

func (*Service) DeleteInvitation

func (_m *Service) DeleteInvitation(ctx context.Context, session authn.Session, userID string, domainID string) error

DeleteInvitation provides a mock function with given fields: ctx, session, userID, domainID

func (*Service) ListInvitations

func (_m *Service) ListInvitations(ctx context.Context, session authn.Session, page invitations.Page) (invitations.InvitationPage, error)

ListInvitations provides a mock function with given fields: ctx, session, page

func (*Service) RejectInvitation

func (_m *Service) RejectInvitation(ctx context.Context, session authn.Session, domainID string) error

RejectInvitation provides a mock function with given fields: ctx, session, domainID

func (*Service) SendInvitation

func (_m *Service) SendInvitation(ctx context.Context, session authn.Session, invitation invitations.Invitation) error

SendInvitation provides a mock function with given fields: ctx, session, invitation

func (*Service) ViewInvitation

func (_m *Service) ViewInvitation(ctx context.Context, session authn.Session, userID string, domainID string) (invitations.Invitation, error)

ViewInvitation provides a mock function with given fields: ctx, session, userID, domainID

Jump to

Keyboard shortcuts

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