mocks

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 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 IComputerStorage

type IComputerStorage struct {
	mock.Mock
}

IComputerStorage is an autogenerated mock type for the IComputerStorage type

func NewIComputerStorage

func NewIComputerStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *IComputerStorage

NewIComputerStorage creates a new instance of IComputerStorage. 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 (*IComputerStorage) GetDiskData

func (_m *IComputerStorage) GetDiskData() ([]entity.StorageDisk, error)

GetDiskData provides a mock function with given fields:

func (*IComputerStorage) SaveDiskData

func (_m *IComputerStorage) SaveDiskData(diskInfo []entity.Disk) error

SaveDiskData provides a mock function with given fields: diskInfo

type IComputerUsecase

type IComputerUsecase struct {
	mock.Mock
}

IComputerUsecase is an autogenerated mock type for the IComputerUsecase type

func NewIComputerUsecase

func NewIComputerUsecase(t interface {
	mock.TestingT
	Cleanup(func())
}) *IComputerUsecase

NewIComputerUsecase creates a new instance of IComputerUsecase. 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 (*IComputerUsecase) GetComputerInfo

func (_m *IComputerUsecase) GetComputerInfo() (*entity.Computer, error)

GetComputerInfo provides a mock function with given fields:

func (*IComputerUsecase) GetDiskDataHistory

func (_m *IComputerUsecase) GetDiskDataHistory() ([]entity.StorageDisk, error)

GetDiskDataHistory provides a mock function with given fields:

func (*IComputerUsecase) SaveDiskDataHistory

func (_m *IComputerUsecase) SaveDiskDataHistory() error

SaveDiskDataHistory provides a mock function with given fields:

type IHostStorage

type IHostStorage struct {
	mock.Mock
}

IHostStorage is an autogenerated mock type for the IHostStorage type

func NewIHostStorage

func NewIHostStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *IHostStorage

NewIHostStorage creates a new instance of IHostStorage. 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 (*IHostStorage) Info

func (_m *IHostStorage) Info() (*host.InfoStat, error)

Info provides a mock function with given fields:

Jump to

Keyboard shortcuts

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