mock

package
v0.0.0-...-dc9cd6f Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//ZeroTimeHex is a fixed reproducible value to be used as References
	// defined with bson.Hex of time.Zero
	ZeroTimeHex = "886e09000000000000000000"
	//OneSecTimeHex is a fixed reproducible value to be used as References
	// defined with bson.Hex of time.Zero + 1 time.Second
	OneSecTimeHex = "886e09010000000000000000"
)

Variables

This section is empty.

Functions

func NewLogRepositoryMock

func NewLogRepositoryMock() logs.Log

NewLogRepositoryMock creates a new mock for the log repository

func NewMockClientDAO

func NewMockClientDAO() client.Repository

NewMockClientDAO creates a new Client Repository Mock

func NewMockComponentDAO

func NewMockComponentDAO() component.Repository

NewMockComponentDAO creates a new Component Repository Mock

func NewMockFailureClientDAO

func NewMockFailureClientDAO() client.Repository

NewMockFailureClientDAO creates a new Client Repository Mock that fails in every operation

func NewMockFailureComponentDAO

func NewMockFailureComponentDAO() component.Repository

NewMockFailureComponentDAO creates a new Component Repository Mock that fails in every operation

func NewMockFailureIncidentDAO

func NewMockFailureIncidentDAO() incident.Repository

NewMockFailureIncidentDAO creates a new Incident Repository Mock that fails in every operation

func NewMockIncidentDAO

func NewMockIncidentDAO() incident.Repository

NewMockIncidentDAO creates a new Incident Repository Mock

func PrometheusModel

func PrometheusModel() map[string]models.PrometheusIncomingWebhook

PrometheusModel return a map of PrometheusIncomingWebhook structures to be used in tests named by it's the test case model

Types

This section is empty.

Jump to

Keyboard shortcuts

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