mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 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 Calculator

type Calculator struct {
	mock.Mock
}

Calculator is an autogenerated mock type for the Calculator type

func (*Calculator) CalculateUptime

func (_m *Calculator) CalculateUptime(nodeID ids.NodeID) (time.Duration, time.Time, error)

CalculateUptime provides a mock function with given fields: nodeID

func (*Calculator) CalculateUptimePercent

func (_m *Calculator) CalculateUptimePercent(nodeID ids.NodeID) (float64, error)

CalculateUptimePercent provides a mock function with given fields: nodeID

func (*Calculator) CalculateUptimePercentFrom

func (_m *Calculator) CalculateUptimePercentFrom(nodeID ids.NodeID, startTime time.Time) (float64, error)

CalculateUptimePercentFrom provides a mock function with given fields: nodeID, startTime

Jump to

Keyboard shortcuts

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