github.com/koko1123/flow-go-1@v0.29.6/state/protocol/mock/global_params.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 // GlobalParams is an autogenerated mock type for the GlobalParams type 11 type GlobalParams struct { 12 mock.Mock 13 } 14 15 // ChainID provides a mock function with given fields: 16 func (_m *GlobalParams) ChainID() (flow.ChainID, error) { 17 ret := _m.Called() 18 19 var r0 flow.ChainID 20 if rf, ok := ret.Get(0).(func() flow.ChainID); ok { 21 r0 = rf() 22 } else { 23 r0 = ret.Get(0).(flow.ChainID) 24 } 25 26 var r1 error 27 if rf, ok := ret.Get(1).(func() error); ok { 28 r1 = rf() 29 } else { 30 r1 = ret.Error(1) 31 } 32 33 return r0, r1 34 } 35 36 // ProtocolVersion provides a mock function with given fields: 37 func (_m *GlobalParams) ProtocolVersion() (uint, error) { 38 ret := _m.Called() 39 40 var r0 uint 41 if rf, ok := ret.Get(0).(func() uint); ok { 42 r0 = rf() 43 } else { 44 r0 = ret.Get(0).(uint) 45 } 46 47 var r1 error 48 if rf, ok := ret.Get(1).(func() error); ok { 49 r1 = rf() 50 } else { 51 r1 = ret.Error(1) 52 } 53 54 return r0, r1 55 } 56 57 // SporkID provides a mock function with given fields: 58 func (_m *GlobalParams) SporkID() (flow.Identifier, error) { 59 ret := _m.Called() 60 61 var r0 flow.Identifier 62 if rf, ok := ret.Get(0).(func() flow.Identifier); ok { 63 r0 = rf() 64 } else { 65 if ret.Get(0) != nil { 66 r0 = ret.Get(0).(flow.Identifier) 67 } 68 } 69 70 var r1 error 71 if rf, ok := ret.Get(1).(func() error); ok { 72 r1 = rf() 73 } else { 74 r1 = ret.Error(1) 75 } 76 77 return r0, r1 78 } 79 80 type mockConstructorTestingTNewGlobalParams interface { 81 mock.TestingT 82 Cleanup(func()) 83 } 84 85 // NewGlobalParams creates a new instance of GlobalParams. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 86 func NewGlobalParams(t mockConstructorTestingTNewGlobalParams) *GlobalParams { 87 mock := &GlobalParams{} 88 mock.Mock.Test(t) 89 90 t.Cleanup(func() { mock.AssertExpectations(t) }) 91 92 return mock 93 }