uptimemock

package
v0.0.0-...-bc03976 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package uptimemock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calculator

type Calculator struct {
	// contains filtered or unexported fields
}

Calculator is a mock of Calculator interface.

func NewCalculator

func NewCalculator(ctrl *gomock.Controller) *Calculator

NewCalculator creates a new mock instance.

func (*Calculator) CalculateUptime

func (m *Calculator) CalculateUptime(arg0 ids.NodeID, arg1 ids.ID) (time.Duration, time.Time, error)

CalculateUptime mocks base method.

func (*Calculator) CalculateUptimePercent

func (m *Calculator) CalculateUptimePercent(arg0 ids.NodeID, arg1 ids.ID) (float64, error)

CalculateUptimePercent mocks base method.

func (*Calculator) CalculateUptimePercentFrom

func (m *Calculator) CalculateUptimePercentFrom(arg0 ids.NodeID, arg1 ids.ID, arg2 time.Time) (float64, error)

CalculateUptimePercentFrom mocks base method.

func (*Calculator) EXPECT

func (m *Calculator) EXPECT() *CalculatorMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

type CalculatorMockRecorder

type CalculatorMockRecorder struct {
	// contains filtered or unexported fields
}

CalculatorMockRecorder is the mock recorder for Calculator.

func (*CalculatorMockRecorder) CalculateUptime

func (mr *CalculatorMockRecorder) CalculateUptime(arg0, arg1 any) *gomock.Call

CalculateUptime indicates an expected call of CalculateUptime.

func (*CalculatorMockRecorder) CalculateUptimePercent

func (mr *CalculatorMockRecorder) CalculateUptimePercent(arg0, arg1 any) *gomock.Call

CalculateUptimePercent indicates an expected call of CalculateUptimePercent.

func (*CalculatorMockRecorder) CalculateUptimePercentFrom

func (mr *CalculatorMockRecorder) CalculateUptimePercentFrom(arg0, arg1, arg2 any) *gomock.Call

CalculateUptimePercentFrom indicates an expected call of CalculateUptimePercentFrom.

Jump to

Keyboard shortcuts

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