mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-03-07 01:07:44 +08:00
46 lines
1.0 KiB
Go
46 lines
1.0 KiB
Go
// Code generated by mockery. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
mock "github.com/stretchr/testify/mock"
|
|
models "source.quilibrium.com/quilibrium/monorepo/consensus/models"
|
|
)
|
|
|
|
// Finalizer is an autogenerated mock type for the Finalizer type
|
|
type Finalizer struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// MakeFinal provides a mock function with given fields: stateID
|
|
func (_m *Finalizer) MakeFinal(stateID models.Identity) error {
|
|
ret := _m.Called(stateID)
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for MakeFinal")
|
|
}
|
|
|
|
var r0 error
|
|
if rf, ok := ret.Get(0).(func(models.Identity) error); ok {
|
|
r0 = rf(stateID)
|
|
} else {
|
|
r0 = ret.Error(0)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// NewFinalizer creates a new instance of Finalizer. 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 NewFinalizer(t interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}) *Finalizer {
|
|
mock := &Finalizer{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|