mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-05 03:20:44 +00:00
41 lines
1.1 KiB
Go
41 lines
1.1 KiB
Go
// Code generated by mockery. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
testing "testing"
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
state "github.com/tendermint/tendermint/internal/state"
|
|
)
|
|
|
|
// ConsSyncReactor is an autogenerated mock type for the ConsSyncReactor type
|
|
type ConsSyncReactor struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// SetBlockSyncingMetrics provides a mock function with given fields: _a0
|
|
func (_m *ConsSyncReactor) SetBlockSyncingMetrics(_a0 float64) {
|
|
_m.Called(_a0)
|
|
}
|
|
|
|
// SetStateSyncingMetrics provides a mock function with given fields: _a0
|
|
func (_m *ConsSyncReactor) SetStateSyncingMetrics(_a0 float64) {
|
|
_m.Called(_a0)
|
|
}
|
|
|
|
// SwitchToConsensus provides a mock function with given fields: _a0, _a1
|
|
func (_m *ConsSyncReactor) SwitchToConsensus(_a0 state.State, _a1 bool) {
|
|
_m.Called(_a0, _a1)
|
|
}
|
|
|
|
// NewConsSyncReactor creates a new instance of ConsSyncReactor. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
|
|
func NewConsSyncReactor(t testing.TB) *ConsSyncReactor {
|
|
mock := &ConsSyncReactor{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|