Documentation ¶
Overview ¶
Package uptimemock is a generated GoMock package.
Index ¶
- type Calculator
- func (m *Calculator) CalculateUptime(arg0 ids.NodeID, arg1 ids.ID) (time.Duration, time.Time, error)
- func (m *Calculator) CalculateUptimePercent(arg0 ids.NodeID, arg1 ids.ID) (float64, error)
- func (m *Calculator) CalculateUptimePercentFrom(arg0 ids.NodeID, arg1 ids.ID, arg2 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 ¶
func (m *Calculator) CalculateUptime(arg0 ids.NodeID, arg1 ids.ID) (time.Duration, time.Time, error)
CalculateUptime mocks base method.
func (*Calculator) CalculateUptimePercent ¶
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.
Click to show internal directories.
Click to hide internal directories.