github.com/koko1123/flow-go-1@v0.29.6/consensus/hotstuff/mocks/finalization_consumer.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	model "github.com/koko1123/flow-go-1/consensus/hotstuff/model"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // FinalizationConsumer is an autogenerated mock type for the FinalizationConsumer type
    11  type FinalizationConsumer struct {
    12  	mock.Mock
    13  }
    14  
    15  // OnBlockIncorporated provides a mock function with given fields: _a0
    16  func (_m *FinalizationConsumer) OnBlockIncorporated(_a0 *model.Block) {
    17  	_m.Called(_a0)
    18  }
    19  
    20  // OnDoubleProposeDetected provides a mock function with given fields: _a0, _a1
    21  func (_m *FinalizationConsumer) OnDoubleProposeDetected(_a0 *model.Block, _a1 *model.Block) {
    22  	_m.Called(_a0, _a1)
    23  }
    24  
    25  // OnFinalizedBlock provides a mock function with given fields: _a0
    26  func (_m *FinalizationConsumer) OnFinalizedBlock(_a0 *model.Block) {
    27  	_m.Called(_a0)
    28  }
    29  
    30  type mockConstructorTestingTNewFinalizationConsumer interface {
    31  	mock.TestingT
    32  	Cleanup(func())
    33  }
    34  
    35  // NewFinalizationConsumer creates a new instance of FinalizationConsumer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    36  func NewFinalizationConsumer(t mockConstructorTestingTNewFinalizationConsumer) *FinalizationConsumer {
    37  	mock := &FinalizationConsumer{}
    38  	mock.Mock.Test(t)
    39  
    40  	t.Cleanup(func() { mock.AssertExpectations(t) })
    41  
    42  	return mock
    43  }