github.com/google/trillian-examples@v0.0.0-20240520080811-0d40d35cef0e/binary_transparency/firmware/cmd/ftmapserver/impl/mock_mapreader.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/google/trillian-examples/binary_transparency/firmware/cmd/ftmapserver/impl (interfaces: MapReader) 3 4 package impl 5 6 import ( 7 reflect "reflect" 8 9 gomock "github.com/golang/mock/gomock" 10 api "github.com/google/trillian-examples/binary_transparency/firmware/api" 11 batchmap "github.com/google/trillian/experimental/batchmap" 12 types "github.com/google/trillian/types" 13 ) 14 15 // MockMapReader is a mock of MapReader interface. 16 type MockMapReader struct { 17 ctrl *gomock.Controller 18 recorder *MockMapReaderMockRecorder 19 } 20 21 // MockMapReaderMockRecorder is the mock recorder for MockMapReader. 22 type MockMapReaderMockRecorder struct { 23 mock *MockMapReader 24 } 25 26 // NewMockMapReader creates a new mock instance. 27 func NewMockMapReader(ctrl *gomock.Controller) *MockMapReader { 28 mock := &MockMapReader{ctrl: ctrl} 29 mock.recorder = &MockMapReaderMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockMapReader) EXPECT() *MockMapReaderMockRecorder { 35 return m.recorder 36 } 37 38 // Aggregation mocks base method. 39 func (m *MockMapReader) Aggregation(arg0 int, arg1 uint64) (api.AggregatedFirmware, error) { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "Aggregation", arg0, arg1) 42 ret0, _ := ret[0].(api.AggregatedFirmware) 43 ret1, _ := ret[1].(error) 44 return ret0, ret1 45 } 46 47 // Aggregation indicates an expected call of Aggregation. 48 func (mr *MockMapReaderMockRecorder) Aggregation(arg0, arg1 interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Aggregation", reflect.TypeOf((*MockMapReader)(nil).Aggregation), arg0, arg1) 51 } 52 53 // LatestRevision mocks base method. 54 func (m *MockMapReader) LatestRevision() (int, types.LogRootV1, int64, error) { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "LatestRevision") 57 ret0, _ := ret[0].(int) 58 ret1, _ := ret[1].(types.LogRootV1) 59 ret2, _ := ret[2].(int64) 60 ret3, _ := ret[3].(error) 61 return ret0, ret1, ret2, ret3 62 } 63 64 // LatestRevision indicates an expected call of LatestRevision. 65 func (mr *MockMapReaderMockRecorder) LatestRevision() *gomock.Call { 66 mr.mock.ctrl.T.Helper() 67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LatestRevision", reflect.TypeOf((*MockMapReader)(nil).LatestRevision)) 68 } 69 70 // Tile mocks base method. 71 func (m *MockMapReader) Tile(arg0 int, arg1 []byte) (*batchmap.Tile, error) { 72 m.ctrl.T.Helper() 73 ret := m.ctrl.Call(m, "Tile", arg0, arg1) 74 ret0, _ := ret[0].(*batchmap.Tile) 75 ret1, _ := ret[1].(error) 76 return ret0, ret1 77 } 78 79 // Tile indicates an expected call of Tile. 80 func (mr *MockMapReaderMockRecorder) Tile(arg0, arg1 interface{}) *gomock.Call { 81 mr.mock.ctrl.T.Helper() 82 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tile", reflect.TypeOf((*MockMapReader)(nil).Tile), arg0, arg1) 83 }