automock

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 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 Indicator

type Indicator struct {
	mock.Mock
}

Indicator is an autogenerated mock type for the Indicator type

func NewIndicator

func NewIndicator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Indicator

NewIndicator creates a new instance of Indicator. 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 (*Indicator) Configure

func (_m *Indicator) Configure(_a0 healthz.IndicatorConfig)

Configure provides a mock function with given fields: _a0

func (*Indicator) Name

func (_m *Indicator) Name() string

Name provides a mock function with given fields:

func (*Indicator) Run

func (_m *Indicator) Run(ctx context.Context)

Run provides a mock function with given fields: ctx

func (*Indicator) Status

func (_m *Indicator) Status() healthz.Status

Status provides a mock function with given fields:

type Pinger

type Pinger struct {
	mock.Mock
}

Pinger is an autogenerated mock type for the Pinger type

func NewPinger

func NewPinger(t interface {
	mock.TestingT
	Cleanup(func())
}) *Pinger

NewPinger creates a new instance of Pinger. 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 (*Pinger) PingContext

func (_m *Pinger) PingContext(ctx context.Context) error

PingContext provides a mock function with given fields: ctx

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) GetVersion

func (_m *Repository) GetVersion(ctx context.Context) (string, bool, error)

GetVersion provides a mock function with given fields: ctx

type Status

type Status struct {
	mock.Mock
}

Status is an autogenerated mock type for the Status type

func NewStatus

func NewStatus(t interface {
	mock.TestingT
	Cleanup(func())
}) *Status

NewStatus creates a new instance of Status. 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 (*Status) Details

func (_m *Status) Details() string

Details provides a mock function with given fields:

func (*Status) Error

func (_m *Status) Error() error

Error 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