mocks

package
v0.0.0-...-984c388 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardRepository

type CardRepository struct {
	mock.Mock
}

CardRepository is an autogenerated mock type for the Repository type

func NewCardRepository

func NewCardRepository(t mockConstructorTestingTNewCardRepository) *CardRepository

NewCardRepository creates a new instance of CardRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CardRepository) Find

Find provides a mock function with given fields: ctx, cr

func (*CardRepository) Get

func (_m *CardRepository) Get(ctx context.Context, id string) (*card.Card, error)

Get provides a mock function with given fields: ctx, id

func (*CardRepository) Remove

func (_m *CardRepository) Remove(ctx context.Context, id string) error

Remove provides a mock function with given fields: ctx, id

func (*CardRepository) Save

func (_m *CardRepository) Save(ctx context.Context, v card.Card) error

Save provides a mock function with given fields: ctx, v

type ContactRepository

type ContactRepository struct {
	mock.Mock
}

ContactRepository is an autogenerated mock type for the Repository type

func NewContactRepository

func NewContactRepository(t mockConstructorTestingTNewContactRepository) *ContactRepository

NewContactRepository creates a new instance of ContactRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ContactRepository) Find

Find provides a mock function with given fields: ctx, cr

func (*ContactRepository) Get

Get provides a mock function with given fields: ctx, id

func (*ContactRepository) GetUserContacts

func (_m *ContactRepository) GetUserContacts(ctx context.Context, criteria storage.Criteria, userID string) ([]contact.Contact, storage.PageToken, error)

GetUserContacts provides a mock function with given fields: ctx, criteria, userID

func (*ContactRepository) Remove

func (_m *ContactRepository) Remove(ctx context.Context, id string) error

Remove provides a mock function with given fields: ctx, id

func (*ContactRepository) Save

Save provides a mock function with given fields: ctx, v

type FinancialAccountRepository

type FinancialAccountRepository struct {
	mock.Mock
}

FinancialAccountRepository is an autogenerated mock type for the Repository type

func NewFinancialAccountRepository

func NewFinancialAccountRepository(t mockConstructorTestingTNewFinancialAccountRepository) *FinancialAccountRepository

NewFinancialAccountRepository creates a new instance of FinancialAccountRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FinancialAccountRepository) Find

Find provides a mock function with given fields: ctx, cr

func (*FinancialAccountRepository) Get

Get provides a mock function with given fields: ctx, id

func (*FinancialAccountRepository) Remove

Remove provides a mock function with given fields: ctx, id

func (*FinancialAccountRepository) Save

Save provides a mock function with given fields: ctx, v

type UserRepository

type UserRepository struct {
	mock.Mock
}

UserRepository is an autogenerated mock type for the Repository type

func NewUserRepository

func NewUserRepository(t mockConstructorTestingTNewUserRepository) *UserRepository

NewUserRepository creates a new instance of UserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*UserRepository) Find

Find provides a mock function with given fields: ctx, cr

func (*UserRepository) Get

func (_m *UserRepository) Get(ctx context.Context, id string) (*user.User, error)

Get provides a mock function with given fields: ctx, id

func (*UserRepository) Remove

func (_m *UserRepository) Remove(ctx context.Context, id string) error

Remove provides a mock function with given fields: ctx, id

func (*UserRepository) Save

func (_m *UserRepository) Save(ctx context.Context, v user.User) error

Save provides a mock function with given fields: ctx, v

Jump to

Keyboard shortcuts

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