Documentation ¶
Overview ¶
Package uptimemock is a generated GoMock package.
Index ¶
- type Calculator
- func (m *Calculator) CalculateUptime(arg0 ids.NodeID) (time.Duration, time.Time, error)
- func (m *Calculator) CalculateUptimePercent(arg0 ids.NodeID) (float64, error)
- func (m *Calculator) CalculateUptimePercentFrom(arg0 ids.NodeID, arg1 time.Time) (float64, error)
- func (m *Calculator) EXPECT() *CalculatorMockRecorder
- type CalculatorMockRecorder
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 ¶
CalculateUptime mocks base method.
func (*Calculator) CalculateUptimePercent ¶
func (m *Calculator) CalculateUptimePercent(arg0 ids.NodeID) (float64, error)
CalculateUptimePercent mocks base method.
func (*Calculator) CalculateUptimePercentFrom ¶
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 any) *gomock.Call
CalculateUptime indicates an expected call of CalculateUptime.
func (*CalculatorMockRecorder) CalculateUptimePercent ¶
func (mr *CalculatorMockRecorder) CalculateUptimePercent(arg0 any) *gomock.Call
CalculateUptimePercent indicates an expected call of CalculateUptimePercent.
func (*CalculatorMockRecorder) CalculateUptimePercentFrom ¶
func (mr *CalculatorMockRecorder) CalculateUptimePercentFrom(arg0, arg1 any) *gomock.Call
CalculateUptimePercentFrom indicates an expected call of CalculateUptimePercentFrom.
Click to show internal directories.
Click to hide internal directories.