mocks

package
v0.11.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressPersister

type AddressPersister struct {
	mock.Mock
}

AddressPersister is an autogenerated mock type for the AddressPersister type

func NewAddressPersister

func NewAddressPersister(t interface {
	mock.TestingT
	Cleanup(func())
}) *AddressPersister

NewAddressPersister creates a new instance of AddressPersister. 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 (*AddressPersister) Save

func (_m *AddressPersister) Save(address domain.Address) error

Save provides a mock function with given fields: address

type InventoryExtractor

type InventoryExtractor struct {
	mock.Mock
}

InventoryExtractor is an autogenerated mock type for the InventoryExtractor type

func NewInventoryExtractor

func NewInventoryExtractor(t interface {
	mock.TestingT
	Cleanup(func())
}) *InventoryExtractor

NewInventoryExtractor creates a new instance of InventoryExtractor. 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 (*InventoryExtractor) ByID

ByID provides a mock function with given fields: id

func (*InventoryExtractor) ByUUID

func (_m *InventoryExtractor) ByUUID(uuid string) (domain.Inventory, error)

ByUUID provides a mock function with given fields: uuid

type LoopbackSubnetExtractor

type LoopbackSubnetExtractor struct {
	mock.Mock
}

LoopbackSubnetExtractor is an autogenerated mock type for the LoopbackSubnetExtractor type

func NewLoopbackSubnetExtractor

func NewLoopbackSubnetExtractor(t interface {
	mock.TestingT
	Cleanup(func())
}) *LoopbackSubnetExtractor

NewLoopbackSubnetExtractor creates a new instance of LoopbackSubnetExtractor. 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 (*LoopbackSubnetExtractor) ByType

func (_m *LoopbackSubnetExtractor) ByType(ipType string) (dto.SubnetInfo, error)

ByType provides a mock function with given fields: ipType

func (*LoopbackSubnetExtractor) IPv6ByName

func (_m *LoopbackSubnetExtractor) IPv6ByName(name string) (dto.SubnetInfo, error)

IPv6ByName provides a mock function with given fields: name

type SubnetPersister

type SubnetPersister struct {
	mock.Mock
}

SubnetPersister is an autogenerated mock type for the SubnetPersister type

func NewSubnetPersister

func NewSubnetPersister(t interface {
	mock.TestingT
	Cleanup(func())
}) *SubnetPersister

NewSubnetPersister creates a new instance of SubnetPersister. 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 (*SubnetPersister) Save

func (_m *SubnetPersister) Save(info dto.SubnetInfo) error

Save provides a mock function with given fields: info

Jump to

Keyboard shortcuts

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