github.com/franono/tendermint@v0.32.2-0.20200527150959-749313264ce9/state/mocks/evidence_pool.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 mock "github.com/stretchr/testify/mock" 7 state "github.com/franono/tendermint/state" 8 9 types "github.com/franono/tendermint/types" 10 ) 11 12 // EvidencePool is an autogenerated mock type for the EvidencePool type 13 type EvidencePool struct { 14 mock.Mock 15 } 16 17 // AddEvidence provides a mock function with given fields: _a0 18 func (_m *EvidencePool) AddEvidence(_a0 types.Evidence) error { 19 ret := _m.Called(_a0) 20 21 var r0 error 22 if rf, ok := ret.Get(0).(func(types.Evidence) error); ok { 23 r0 = rf(_a0) 24 } else { 25 r0 = ret.Error(0) 26 } 27 28 return r0 29 } 30 31 // IsCommitted provides a mock function with given fields: _a0 32 func (_m *EvidencePool) IsCommitted(_a0 types.Evidence) bool { 33 ret := _m.Called(_a0) 34 35 var r0 bool 36 if rf, ok := ret.Get(0).(func(types.Evidence) bool); ok { 37 r0 = rf(_a0) 38 } else { 39 r0 = ret.Get(0).(bool) 40 } 41 42 return r0 43 } 44 45 // IsPending provides a mock function with given fields: _a0 46 func (_m *EvidencePool) IsPending(_a0 types.Evidence) bool { 47 ret := _m.Called(_a0) 48 49 var r0 bool 50 if rf, ok := ret.Get(0).(func(types.Evidence) bool); ok { 51 r0 = rf(_a0) 52 } else { 53 r0 = ret.Get(0).(bool) 54 } 55 56 return r0 57 } 58 59 // PendingEvidence provides a mock function with given fields: _a0 60 func (_m *EvidencePool) PendingEvidence(_a0 uint32) []types.Evidence { 61 ret := _m.Called(_a0) 62 63 var r0 []types.Evidence 64 if rf, ok := ret.Get(0).(func(uint32) []types.Evidence); ok { 65 r0 = rf(_a0) 66 } else { 67 if ret.Get(0) != nil { 68 r0 = ret.Get(0).([]types.Evidence) 69 } 70 } 71 72 return r0 73 } 74 75 // Update provides a mock function with given fields: _a0, _a1 76 func (_m *EvidencePool) Update(_a0 *types.Block, _a1 state.State) { 77 _m.Called(_a0, _a1) 78 }