mocks

package
v0.0.0-...-342a44e Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresGormDB

func NewPostgresGormDB(t *testing.T) (*gorm.DB, sqlmock.Sqlmock)

Types

type APIRestPorts

type APIRestPorts struct {
	mock.Mock
}

APIRestPorts is an autogenerated mock type for the APIRestPorts type

func NewAPIRestPorts

func NewAPIRestPorts(t interface {
	mock.TestingT
	Cleanup(func())
}) *APIRestPorts

NewAPIRestPorts creates a new instance of APIRestPorts. 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 (*APIRestPorts) RunServer

func (_m *APIRestPorts) RunServer()

RunServer provides a mock function with given fields:

type AnyTime

type AnyTime struct{}

func (AnyTime) Match

func (a AnyTime) Match(v driver.Value) bool

type ClimateDataRepositoryPort

type ClimateDataRepositoryPort struct {
	mock.Mock
}

ClimateDataRepositoryPort is an autogenerated mock type for the ClimateDataRepositoryPort type

func NewClimateDataRepositoryPort

func NewClimateDataRepositoryPort(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClimateDataRepositoryPort

NewClimateDataRepositoryPort creates a new instance of ClimateDataRepositoryPort. 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 (*ClimateDataRepositoryPort) CreateClimateData

func (_m *ClimateDataRepositoryPort) CreateClimateData(ctx context.Context, entity *entities.ClimateDataEntity) (string, error)

CreateClimateData provides a mock function with given fields: ctx, entity

type ClimateDataServicePorts

type ClimateDataServicePorts struct {
	mock.Mock
}

ClimateDataServicePorts is an autogenerated mock type for the ClimateDataServicePorts type

func NewClimateDataServicePorts

func NewClimateDataServicePorts(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClimateDataServicePorts

NewClimateDataServicePorts creates a new instance of ClimateDataServicePorts. 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 (*ClimateDataServicePorts) GetLatestClimateData

func (_m *ClimateDataServicePorts) GetLatestClimateData() (*entities.ClimateDataEntity, error)

GetLatestClimateData provides a mock function with given fields:

type GetLatestClimateDataUseCasePort

type GetLatestClimateDataUseCasePort struct {
	mock.Mock
}

GetLatestClimateDataUseCasePort is an autogenerated mock type for the GetLatestClimateDataUseCasePort type

func NewGetLatestClimateDataUseCasePort

func NewGetLatestClimateDataUseCasePort(t interface {
	mock.TestingT
	Cleanup(func())
}) *GetLatestClimateDataUseCasePort

NewGetLatestClimateDataUseCasePort creates a new instance of GetLatestClimateDataUseCasePort. 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 (*GetLatestClimateDataUseCasePort) Execute

Execute provides a mock function with given fields: ctx

type HandlerMessage

type HandlerMessage struct {
	mock.Mock
}

HandlerMessage is an autogenerated mock type for the HandlerMessage type

func NewHandlerMessage

func NewHandlerMessage(t interface {
	mock.TestingT
	Cleanup(func())
}) *HandlerMessage

NewHandlerMessage creates a new instance of HandlerMessage. 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 (*HandlerMessage) Execute

func (_m *HandlerMessage) Execute(ctx context.Context, eventMessage []byte) error

Execute provides a mock function with given fields: ctx, eventMessage

type IOTDeviceRepositoryPort

type IOTDeviceRepositoryPort struct {
	mock.Mock
}

IOTDeviceRepositoryPort is an autogenerated mock type for the IOTDeviceRepositoryPort type

func NewIOTDeviceRepositoryPort

func NewIOTDeviceRepositoryPort(t interface {
	mock.TestingT
	Cleanup(func())
}) *IOTDeviceRepositoryPort

NewIOTDeviceRepositoryPort creates a new instance of IOTDeviceRepositoryPort. 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 (*IOTDeviceRepositoryPort) CreateIOTDevice

func (_m *IOTDeviceRepositoryPort) CreateIOTDevice(ctx context.Context, entity *entities.IOTDeviceEntity) (string, error)

CreateIOTDevice provides a mock function with given fields: ctx, entity

type IOTDeviceServicePort

type IOTDeviceServicePort struct {
	mock.Mock
}

IOTDeviceServicePort is an autogenerated mock type for the IOTDeviceServicePort type

func NewIOTDeviceServicePort

func NewIOTDeviceServicePort(t interface {
	mock.TestingT
	Cleanup(func())
}) *IOTDeviceServicePort

NewIOTDeviceServicePort creates a new instance of IOTDeviceServicePort. 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 (*IOTDeviceServicePort) GetIOTDeviceByMACAddress

func (_m *IOTDeviceServicePort) GetIOTDeviceByMACAddress(ctx context.Context, macAddress string) (*entities.IOTDeviceEntity, error)

GetIOTDeviceByMACAddress provides a mock function with given fields: ctx, macAddress

type MQTTPorts

type MQTTPorts struct {
	mock.Mock
}

MQTTPorts is an autogenerated mock type for the MQTTPorts type

func NewMQTTPorts

func NewMQTTPorts(t interface {
	mock.TestingT
	Cleanup(func())
}) *MQTTPorts

NewMQTTPorts creates a new instance of MQTTPorts. 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 (*MQTTPorts) RunConsumer

func (_m *MQTTPorts) RunConsumer(topic string)

RunConsumer provides a mock function with given fields: topic

type SaveClimateDataUseCasePort

type SaveClimateDataUseCasePort struct {
	mock.Mock
}

SaveClimateDataUseCasePort is an autogenerated mock type for the SaveClimateDataUseCasePort type

func NewSaveClimateDataUseCasePort

func NewSaveClimateDataUseCasePort(t interface {
	mock.TestingT
	Cleanup(func())
}) *SaveClimateDataUseCasePort

NewSaveClimateDataUseCasePort creates a new instance of SaveClimateDataUseCasePort. 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 (*SaveClimateDataUseCasePort) Execute

func (_m *SaveClimateDataUseCasePort) Execute(ctx context.Context, eventMessage []byte) error

Execute provides a mock function with given fields: ctx, eventMessage

Jump to

Keyboard shortcuts

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