github.com/koko1123/flow-go-1@v0.29.6/module/mock/finalizer.go (about) 1 // Code generated by mockery v2.13.1. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 flow "github.com/koko1123/flow-go-1/model/flow" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // Finalizer is an autogenerated mock type for the Finalizer type 11 type Finalizer struct { 12 mock.Mock 13 } 14 15 // MakeFinal provides a mock function with given fields: blockID 16 func (_m *Finalizer) MakeFinal(blockID flow.Identifier) error { 17 ret := _m.Called(blockID) 18 19 var r0 error 20 if rf, ok := ret.Get(0).(func(flow.Identifier) error); ok { 21 r0 = rf(blockID) 22 } else { 23 r0 = ret.Error(0) 24 } 25 26 return r0 27 } 28 29 // MakeValid provides a mock function with given fields: blockID 30 func (_m *Finalizer) MakeValid(blockID flow.Identifier) error { 31 ret := _m.Called(blockID) 32 33 var r0 error 34 if rf, ok := ret.Get(0).(func(flow.Identifier) error); ok { 35 r0 = rf(blockID) 36 } else { 37 r0 = ret.Error(0) 38 } 39 40 return r0 41 } 42 43 type mockConstructorTestingTNewFinalizer interface { 44 mock.TestingT 45 Cleanup(func()) 46 } 47 48 // 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. 49 func NewFinalizer(t mockConstructorTestingTNewFinalizer) *Finalizer { 50 mock := &Finalizer{} 51 mock.Mock.Test(t) 52 53 t.Cleanup(func() { mock.AssertExpectations(t) }) 54 55 return mock 56 }