// Code generated by mockery. DO NOT EDIT. package mocks import ( mock "github.com/stretchr/testify/mock" models "source.quilibrium.com/quilibrium/monorepo/consensus/models" ) // ProposalViolationConsumer is an autogenerated mock type for the ProposalViolationConsumer type type ProposalViolationConsumer[StateT models.Unique, VoteT models.Unique] struct { mock.Mock } // OnDoubleProposeDetected provides a mock function with given fields: _a0, _a1 func (_m *ProposalViolationConsumer[StateT, VoteT]) OnDoubleProposeDetected(_a0 *models.State[StateT], _a1 *models.State[StateT]) { _m.Called(_a0, _a1) } // OnInvalidStateDetected provides a mock function with given fields: err func (_m *ProposalViolationConsumer[StateT, VoteT]) OnInvalidStateDetected(err *models.InvalidProposalError[StateT, VoteT]) { _m.Called(err) } // NewProposalViolationConsumer creates a new instance of ProposalViolationConsumer. 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 NewProposalViolationConsumer[StateT models.Unique, VoteT models.Unique](t interface { mock.TestingT Cleanup(func()) }) *ProposalViolationConsumer[StateT, VoteT] { mock := &ProposalViolationConsumer[StateT, VoteT]{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }