github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/internal/consensus/mocks/cons_sync_reactor.go (about)

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	mock "github.com/stretchr/testify/mock"
     7  	state "github.com/ari-anchor/sei-tendermint/internal/state"
     8  )
     9  
    10  // ConsSyncReactor is an autogenerated mock type for the ConsSyncReactor type
    11  type ConsSyncReactor struct {
    12  	mock.Mock
    13  }
    14  
    15  // SetBlockSyncingMetrics provides a mock function with given fields: _a0
    16  func (_m *ConsSyncReactor) SetBlockSyncingMetrics(_a0 float64) {
    17  	_m.Called(_a0)
    18  }
    19  
    20  // SetStateSyncingMetrics provides a mock function with given fields: _a0
    21  func (_m *ConsSyncReactor) SetStateSyncingMetrics(_a0 float64) {
    22  	_m.Called(_a0)
    23  }
    24  
    25  // SwitchToConsensus provides a mock function with given fields: _a0, _a1
    26  func (_m *ConsSyncReactor) SwitchToConsensus(_a0 state.State, _a1 bool) {
    27  	_m.Called(_a0, _a1)
    28  }
    29  
    30  type mockConstructorTestingTNewConsSyncReactor interface {
    31  	mock.TestingT
    32  	Cleanup(func())
    33  }
    34  
    35  // NewConsSyncReactor creates a new instance of ConsSyncReactor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    36  func NewConsSyncReactor(t mockConstructorTestingTNewConsSyncReactor) *ConsSyncReactor {
    37  	mock := &ConsSyncReactor{}
    38  	mock.Mock.Test(t)
    39  
    40  	t.Cleanup(func() { mock.AssertExpectations(t) })
    41  
    42  	return mock
    43  }