mocks

package
v0.0.0-...-165a0e8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	mock.Mock
}

Cfg is an autogenerated mock type for the cfg type

func NewCfg

func NewCfg(t interface {
	mock.TestingT
	Cleanup(func())
}) *Cfg

NewCfg creates a new instance of Cfg. 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 (*Cfg) GetKey

func (_m *Cfg) GetKey() string

GetKey provides a mock function with given fields:

func (*Cfg) UseCryptoKey

func (_m *Cfg) UseCryptoKey() bool

UseCryptoKey provides a mock function with given fields:

type Usecase

type Usecase struct {
	mock.Mock
}

Usecase is an autogenerated mock type for the usecase type

func NewUsecase

func NewUsecase(t interface {
	mock.TestingT
	Cleanup(func())
}) *Usecase

NewUsecase creates a new instance of Usecase. 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 (*Usecase) GetAllDataUsecase

func (_m *Usecase) GetAllDataUsecase(ctx context.Context) (entity.MetricsType, error)

GetAllDataUsecase provides a mock function with given fields: ctx

func (*Usecase) GetCounterUsecase

func (_m *Usecase) GetCounterUsecase(ctx context.Context, counterName string) (int64, error)

GetCounterUsecase provides a mock function with given fields: ctx, counterName

func (*Usecase) GetGaugeUsecase

func (_m *Usecase) GetGaugeUsecase(ctx context.Context, gaugeName string) (float64, error)

GetGaugeUsecase provides a mock function with given fields: ctx, gaugeName

func (*Usecase) Ping

func (_m *Usecase) Ping(ctx context.Context) error

Ping provides a mock function with given fields: ctx

func (*Usecase) SaveAllDataBatchUsecase

func (_m *Usecase) SaveAllDataBatchUsecase(ctx context.Context, metrics []entity.Metrics) error

SaveAllDataBatchUsecase provides a mock function with given fields: ctx, metrics

func (*Usecase) SaveAllDataUsecase

func (_m *Usecase) SaveAllDataUsecase(ctx context.Context, metrics []entity.Metrics) error

SaveAllDataUsecase provides a mock function with given fields: ctx, metrics

func (*Usecase) SaveCounterUsecase

func (_m *Usecase) SaveCounterUsecase(ctx context.Context, counterName string, counterValue int64) error

SaveCounterUsecase provides a mock function with given fields: ctx, counterName, counterValue

func (*Usecase) SaveGaugeUsecase

func (_m *Usecase) SaveGaugeUsecase(ctx context.Context, gaugeName string, gaugeValue float64) error

SaveGaugeUsecase provides a mock function with given fields: ctx, gaugeName, gaugeValue

Jump to

Keyboard shortcuts

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