mocks

package
v0.0.0-...-ef67ded Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatisticsProvider

type StatisticsProvider struct {
	mock.Mock
}

StatisticsProvider is an autogenerated mock type for the StatisticsProvider type

func NewStatisticsProvider

func NewStatisticsProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatisticsProvider

NewStatisticsProvider creates a new instance of StatisticsProvider. 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 (*StatisticsProvider) AgeByName

func (_m *StatisticsProvider) AgeByName(name string) (int, error)

AgeByName provides a mock function with given fields: name

func (*StatisticsProvider) CountryByName

func (_m *StatisticsProvider) CountryByName(name string) (string, error)

CountryByName provides a mock function with given fields: name

func (*StatisticsProvider) GenderByName

func (_m *StatisticsProvider) GenderByName(name string) (string, error)

GenderByName provides a mock function with given fields: name

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storage

NewStorage creates a new instance of Storage. 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 (*Storage) CreateNewPersonDataV1

func (_m *Storage) CreateNewPersonDataV1(ctx context.Context, data *models.EnrichedPersonDataV1) error

CreateNewPersonDataV1 provides a mock function with given fields: ctx, data

func (*Storage) DeletePersonData

func (_m *Storage) DeletePersonData(ctx context.Context, id int64) error

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

func (*Storage) EnrichedPersonDataV1

func (_m *Storage) EnrichedPersonDataV1(ctx context.Context, id int64) (*models.EnrichedPersonDataV1, error)

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

func (*Storage) SearchResultV1

func (_m *Storage) SearchResultV1(ctx context.Context, filters *models.SearchFilters) (*models.SearchResultV1, error)

SearchResultV1 provides a mock function with given fields: ctx, filters

func (*Storage) UpdatePersonDataV1

func (_m *Storage) UpdatePersonDataV1(ctx context.Context, id int64, data *models.EditedPersonDataV1) error

UpdatePersonDataV1 provides a mock function with given fields: ctx, id, data

Jump to

Keyboard shortcuts

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