github.com/klaytn/klaytn@v1.12.1/storage/statedb/mocks/trie_node_cache_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/klaytn/klaytn/storage/statedb (interfaces: TrieNodeCache) 3 4 // Package mock_statedb is a generated GoMock package. 5 package mock_statedb 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 ) 12 13 // MockTrieNodeCache is a mock of TrieNodeCache interface 14 type MockTrieNodeCache struct { 15 ctrl *gomock.Controller 16 recorder *MockTrieNodeCacheMockRecorder 17 } 18 19 // MockTrieNodeCacheMockRecorder is the mock recorder for MockTrieNodeCache 20 type MockTrieNodeCacheMockRecorder struct { 21 mock *MockTrieNodeCache 22 } 23 24 // NewMockTrieNodeCache creates a new mock instance 25 func NewMockTrieNodeCache(ctrl *gomock.Controller) *MockTrieNodeCache { 26 mock := &MockTrieNodeCache{ctrl: ctrl} 27 mock.recorder = &MockTrieNodeCacheMockRecorder{mock} 28 return mock 29 } 30 31 // EXPECT returns an object that allows the caller to indicate expected use 32 func (m *MockTrieNodeCache) EXPECT() *MockTrieNodeCacheMockRecorder { 33 return m.recorder 34 } 35 36 // Close mocks base method 37 func (m *MockTrieNodeCache) Close() error { 38 m.ctrl.T.Helper() 39 ret := m.ctrl.Call(m, "Close") 40 ret0, _ := ret[0].(error) 41 return ret0 42 } 43 44 // Close indicates an expected call of Close 45 func (mr *MockTrieNodeCacheMockRecorder) Close() *gomock.Call { 46 mr.mock.ctrl.T.Helper() 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockTrieNodeCache)(nil).Close)) 48 } 49 50 // Get mocks base method 51 func (m *MockTrieNodeCache) Get(arg0 []byte) []byte { 52 m.ctrl.T.Helper() 53 ret := m.ctrl.Call(m, "Get", arg0) 54 ret0, _ := ret[0].([]byte) 55 return ret0 56 } 57 58 // Get indicates an expected call of Get 59 func (mr *MockTrieNodeCacheMockRecorder) Get(arg0 interface{}) *gomock.Call { 60 mr.mock.ctrl.T.Helper() 61 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockTrieNodeCache)(nil).Get), arg0) 62 } 63 64 // Has mocks base method 65 func (m *MockTrieNodeCache) Has(arg0 []byte) ([]byte, bool) { 66 m.ctrl.T.Helper() 67 ret := m.ctrl.Call(m, "Has", arg0) 68 ret0, _ := ret[0].([]byte) 69 ret1, _ := ret[1].(bool) 70 return ret0, ret1 71 } 72 73 // Has indicates an expected call of Has 74 func (mr *MockTrieNodeCacheMockRecorder) Has(arg0 interface{}) *gomock.Call { 75 mr.mock.ctrl.T.Helper() 76 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Has", reflect.TypeOf((*MockTrieNodeCache)(nil).Has), arg0) 77 } 78 79 // SaveToFile mocks base method 80 func (m *MockTrieNodeCache) SaveToFile(arg0 string, arg1 int) error { 81 m.ctrl.T.Helper() 82 ret := m.ctrl.Call(m, "SaveToFile", arg0, arg1) 83 ret0, _ := ret[0].(error) 84 return ret0 85 } 86 87 // SaveToFile indicates an expected call of SaveToFile 88 func (mr *MockTrieNodeCacheMockRecorder) SaveToFile(arg0, arg1 interface{}) *gomock.Call { 89 mr.mock.ctrl.T.Helper() 90 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveToFile", reflect.TypeOf((*MockTrieNodeCache)(nil).SaveToFile), arg0, arg1) 91 } 92 93 // Set mocks base method 94 func (m *MockTrieNodeCache) Set(arg0, arg1 []byte) { 95 m.ctrl.T.Helper() 96 m.ctrl.Call(m, "Set", arg0, arg1) 97 } 98 99 // Set indicates an expected call of Set 100 func (mr *MockTrieNodeCacheMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call { 101 mr.mock.ctrl.T.Helper() 102 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockTrieNodeCache)(nil).Set), arg0, arg1) 103 } 104 105 // UpdateStats mocks base method 106 func (m *MockTrieNodeCache) UpdateStats() interface{} { 107 m.ctrl.T.Helper() 108 ret := m.ctrl.Call(m, "UpdateStats") 109 ret0, _ := ret[0].(interface{}) 110 return ret0 111 } 112 113 // UpdateStats indicates an expected call of UpdateStats 114 func (mr *MockTrieNodeCacheMockRecorder) UpdateStats() *gomock.Call { 115 mr.mock.ctrl.T.Helper() 116 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStats", reflect.TypeOf((*MockTrieNodeCache)(nil).UpdateStats)) 117 }