Documentation
¶
Index ¶
- type EpochComponentsFactory
- type EpochComponentsFactory_Create_Call
- func (_c *EpochComponentsFactory_Create_Call) Return(state cluster.State, proposal component.Component, sync module.ReadyDoneAware, ...) *EpochComponentsFactory_Create_Call
- func (_c *EpochComponentsFactory_Create_Call) Run(run func(epoch protocol.CommittedEpoch)) *EpochComponentsFactory_Create_Call
- func (_c *EpochComponentsFactory_Create_Call) RunAndReturn(...) *EpochComponentsFactory_Create_Call
- type EpochComponentsFactory_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EpochComponentsFactory ¶
EpochComponentsFactory is an autogenerated mock type for the EpochComponentsFactory type
func NewEpochComponentsFactory ¶ added in v0.26.1
func NewEpochComponentsFactory(t interface {
mock.TestingT
Cleanup(func())
}) *EpochComponentsFactory
NewEpochComponentsFactory creates a new instance of EpochComponentsFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*EpochComponentsFactory) Create ¶
func (_mock *EpochComponentsFactory) Create(epoch protocol.CommittedEpoch) (cluster.State, component.Component, module.ReadyDoneAware, module.HotStuff, hotstuff.VoteAggregator, hotstuff.TimeoutAggregator, component.Component, error)
Create provides a mock function for the type EpochComponentsFactory
func (*EpochComponentsFactory) EXPECT ¶ added in v0.46.0
func (_m *EpochComponentsFactory) EXPECT() *EpochComponentsFactory_Expecter
type EpochComponentsFactory_Create_Call ¶ added in v0.46.0
EpochComponentsFactory_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*EpochComponentsFactory_Create_Call) Return ¶ added in v0.46.0
func (_c *EpochComponentsFactory_Create_Call) Return(state cluster.State, proposal component.Component, sync module.ReadyDoneAware, hotstuff1 module.HotStuff, voteAggregator hotstuff.VoteAggregator, timeoutAggregator hotstuff.TimeoutAggregator, messageHub component.Component, err error) *EpochComponentsFactory_Create_Call
func (*EpochComponentsFactory_Create_Call) Run ¶ added in v0.46.0
func (_c *EpochComponentsFactory_Create_Call) Run(run func(epoch protocol.CommittedEpoch)) *EpochComponentsFactory_Create_Call
func (*EpochComponentsFactory_Create_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochComponentsFactory_Create_Call) RunAndReturn(run func(epoch protocol.CommittedEpoch) (cluster.State, component.Component, module.ReadyDoneAware, module.HotStuff, hotstuff.VoteAggregator, hotstuff.TimeoutAggregator, component.Component, error)) *EpochComponentsFactory_Create_Call
type EpochComponentsFactory_Expecter ¶ added in v0.46.0
type EpochComponentsFactory_Expecter struct {
// contains filtered or unexported fields
}
func (*EpochComponentsFactory_Expecter) Create ¶ added in v0.46.0
func (_e *EpochComponentsFactory_Expecter) Create(epoch interface{}) *EpochComponentsFactory_Create_Call
Create is a helper method to define mock.On call
- epoch protocol.CommittedEpoch
Click to show internal directories.
Click to hide internal directories.