mocks

package
v0.0.0-...-4448a72 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	mock.Mock
}

APIClient is an autogenerated mock type for the APIClient type

func NewAPIClient

func NewAPIClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *APIClient

NewAPIClient creates a new instance of APIClient. 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 (*APIClient) GetAlerts

func (_m *APIClient) GetAlerts() ([]incident.Incident, error)

GetAlerts provides a mock function with given fields:

func (*APIClient) GetSilences

func (_m *APIClient) GetSilences() ([]silence.Silence, error)

GetSilences 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