github.com/klaytn/klaytn@v1.12.1/node/sc/kas/mocks/anchordb_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/klaytn/klaytn/kas (interfaces: AnchorDB) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 ) 12 13 // MockAnchorDB is a mock of AnchorDB interface 14 type MockAnchorDB struct { 15 ctrl *gomock.Controller 16 recorder *MockAnchorDBMockRecorder 17 } 18 19 // MockAnchorDBMockRecorder is the mock recorder for MockAnchorDB 20 type MockAnchorDBMockRecorder struct { 21 mock *MockAnchorDB 22 } 23 24 // NewMockAnchorDB creates a new mock instance 25 func NewMockAnchorDB(ctrl *gomock.Controller) *MockAnchorDB { 26 mock := &MockAnchorDB{ctrl: ctrl} 27 mock.recorder = &MockAnchorDBMockRecorder{mock} 28 return mock 29 } 30 31 // EXPECT returns an object that allows the caller to indicate expected use 32 func (m *MockAnchorDB) EXPECT() *MockAnchorDBMockRecorder { 33 return m.recorder 34 } 35 36 // ReadAnchoredBlockNumber mocks base method 37 func (m *MockAnchorDB) ReadAnchoredBlockNumber() uint64 { 38 m.ctrl.T.Helper() 39 ret := m.ctrl.Call(m, "ReadAnchoredBlockNumber") 40 ret0, _ := ret[0].(uint64) 41 return ret0 42 } 43 44 // ReadAnchoredBlockNumber indicates an expected call of ReadAnchoredBlockNumber 45 func (mr *MockAnchorDBMockRecorder) ReadAnchoredBlockNumber() *gomock.Call { 46 mr.mock.ctrl.T.Helper() 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadAnchoredBlockNumber", reflect.TypeOf((*MockAnchorDB)(nil).ReadAnchoredBlockNumber)) 48 } 49 50 // WriteAnchoredBlockNumber mocks base method 51 func (m *MockAnchorDB) WriteAnchoredBlockNumber(arg0 uint64) { 52 m.ctrl.T.Helper() 53 m.ctrl.Call(m, "WriteAnchoredBlockNumber", arg0) 54 } 55 56 // WriteAnchoredBlockNumber indicates an expected call of WriteAnchoredBlockNumber 57 func (mr *MockAnchorDBMockRecorder) WriteAnchoredBlockNumber(arg0 interface{}) *gomock.Call { 58 mr.mock.ctrl.T.Helper() 59 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteAnchoredBlockNumber", reflect.TypeOf((*MockAnchorDB)(nil).WriteAnchoredBlockNumber), arg0) 60 }