mocks

package
v1.0.4-0...-7069f2b Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 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 FakeDataStore

type FakeDataStore struct {
	mock.Mock
	ReturnErr error
	Data      []entities.Data
}

FakeDataStore represents a mocking type for the data store

func (*FakeDataStore) Delete

func (fds *FakeDataStore) Delete(deviceID string) error

Delete provides a mock function to delete data from the database

func (*FakeDataStore) Get

func (fds *FakeDataStore) Get(query *entities.Query) ([]entities.Data, error)

Get provides a mock function to get data from the database

func (*FakeDataStore) Save

func (fds *FakeDataStore) Save(data entities.Data) error

Save provides a mock function to save data on the database

type FakeLogger

type FakeLogger struct {
	mock.Mock
}

FakeLogger represents a mocking type for the logging service

func (*FakeLogger) Debug

func (fl *FakeLogger) Debug(...interface{})

Debug provides a mock function for the debugging Info capability

func (*FakeLogger) Error

func (fl *FakeLogger) Error(...interface{})

Error provides a mock function for the debugging Info capability

func (*FakeLogger) Errorf

func (fl *FakeLogger) Errorf(string, ...interface{})

Errorf provides a mock function for the debugging Info capability

func (*FakeLogger) Info

func (fl *FakeLogger) Info(...interface{})

Info provides a mock function for the debugging Info capability

func (*FakeLogger) Infof

func (fl *FakeLogger) Infof(string, ...interface{})

Infof provides a mock function for the debugging Info capability

func (*FakeLogger) Warn

func (fl *FakeLogger) Warn(...interface{})

Warn provides a mock function for the debugging Info capability

type FakeThingService

type FakeThingService struct {
	mock.Mock
	ReturnErr error
	Things    []*entities.Thing
}

FakeThingService represents a mocking type for the thing's service

func (*FakeThingService) List

func (fts *FakeThingService) List(token string) ([]*entities.Thing, error)

List provides a mock function from the thing's service

Jump to

Keyboard shortcuts

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