github.com/letsencrypt/trillian@v1.1.2-0.20180615153820-ae375a99d36a/testonly/tmock/mock_map_server.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/google/trillian (interfaces: TrillianMapServer) 3 4 // Package tmock is a generated GoMock package. 5 package tmock 6 7 import ( 8 context "context" 9 gomock "github.com/golang/mock/gomock" 10 trillian "github.com/google/trillian" 11 reflect "reflect" 12 ) 13 14 // MockTrillianMapServer is a mock of TrillianMapServer interface 15 type MockTrillianMapServer struct { 16 ctrl *gomock.Controller 17 recorder *MockTrillianMapServerMockRecorder 18 } 19 20 // MockTrillianMapServerMockRecorder is the mock recorder for MockTrillianMapServer 21 type MockTrillianMapServerMockRecorder struct { 22 mock *MockTrillianMapServer 23 } 24 25 // NewMockTrillianMapServer creates a new mock instance 26 func NewMockTrillianMapServer(ctrl *gomock.Controller) *MockTrillianMapServer { 27 mock := &MockTrillianMapServer{ctrl: ctrl} 28 mock.recorder = &MockTrillianMapServerMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use 33 func (m *MockTrillianMapServer) EXPECT() *MockTrillianMapServerMockRecorder { 34 return m.recorder 35 } 36 37 // GetLeaves mocks base method 38 func (m *MockTrillianMapServer) GetLeaves(arg0 context.Context, arg1 *trillian.GetMapLeavesRequest) (*trillian.GetMapLeavesResponse, error) { 39 ret := m.ctrl.Call(m, "GetLeaves", arg0, arg1) 40 ret0, _ := ret[0].(*trillian.GetMapLeavesResponse) 41 ret1, _ := ret[1].(error) 42 return ret0, ret1 43 } 44 45 // GetLeaves indicates an expected call of GetLeaves 46 func (mr *MockTrillianMapServerMockRecorder) GetLeaves(arg0, arg1 interface{}) *gomock.Call { 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeaves", reflect.TypeOf((*MockTrillianMapServer)(nil).GetLeaves), arg0, arg1) 48 } 49 50 // GetLeavesByRevision mocks base method 51 func (m *MockTrillianMapServer) GetLeavesByRevision(arg0 context.Context, arg1 *trillian.GetMapLeavesByRevisionRequest) (*trillian.GetMapLeavesResponse, error) { 52 ret := m.ctrl.Call(m, "GetLeavesByRevision", arg0, arg1) 53 ret0, _ := ret[0].(*trillian.GetMapLeavesResponse) 54 ret1, _ := ret[1].(error) 55 return ret0, ret1 56 } 57 58 // GetLeavesByRevision indicates an expected call of GetLeavesByRevision 59 func (mr *MockTrillianMapServerMockRecorder) GetLeavesByRevision(arg0, arg1 interface{}) *gomock.Call { 60 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeavesByRevision", reflect.TypeOf((*MockTrillianMapServer)(nil).GetLeavesByRevision), arg0, arg1) 61 } 62 63 // GetSignedMapRoot mocks base method 64 func (m *MockTrillianMapServer) GetSignedMapRoot(arg0 context.Context, arg1 *trillian.GetSignedMapRootRequest) (*trillian.GetSignedMapRootResponse, error) { 65 ret := m.ctrl.Call(m, "GetSignedMapRoot", arg0, arg1) 66 ret0, _ := ret[0].(*trillian.GetSignedMapRootResponse) 67 ret1, _ := ret[1].(error) 68 return ret0, ret1 69 } 70 71 // GetSignedMapRoot indicates an expected call of GetSignedMapRoot 72 func (mr *MockTrillianMapServerMockRecorder) GetSignedMapRoot(arg0, arg1 interface{}) *gomock.Call { 73 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSignedMapRoot", reflect.TypeOf((*MockTrillianMapServer)(nil).GetSignedMapRoot), arg0, arg1) 74 } 75 76 // GetSignedMapRootByRevision mocks base method 77 func (m *MockTrillianMapServer) GetSignedMapRootByRevision(arg0 context.Context, arg1 *trillian.GetSignedMapRootByRevisionRequest) (*trillian.GetSignedMapRootResponse, error) { 78 ret := m.ctrl.Call(m, "GetSignedMapRootByRevision", arg0, arg1) 79 ret0, _ := ret[0].(*trillian.GetSignedMapRootResponse) 80 ret1, _ := ret[1].(error) 81 return ret0, ret1 82 } 83 84 // GetSignedMapRootByRevision indicates an expected call of GetSignedMapRootByRevision 85 func (mr *MockTrillianMapServerMockRecorder) GetSignedMapRootByRevision(arg0, arg1 interface{}) *gomock.Call { 86 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSignedMapRootByRevision", reflect.TypeOf((*MockTrillianMapServer)(nil).GetSignedMapRootByRevision), arg0, arg1) 87 } 88 89 // InitMap mocks base method 90 func (m *MockTrillianMapServer) InitMap(arg0 context.Context, arg1 *trillian.InitMapRequest) (*trillian.InitMapResponse, error) { 91 ret := m.ctrl.Call(m, "InitMap", arg0, arg1) 92 ret0, _ := ret[0].(*trillian.InitMapResponse) 93 ret1, _ := ret[1].(error) 94 return ret0, ret1 95 } 96 97 // InitMap indicates an expected call of InitMap 98 func (mr *MockTrillianMapServerMockRecorder) InitMap(arg0, arg1 interface{}) *gomock.Call { 99 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitMap", reflect.TypeOf((*MockTrillianMapServer)(nil).InitMap), arg0, arg1) 100 } 101 102 // SetLeaves mocks base method 103 func (m *MockTrillianMapServer) SetLeaves(arg0 context.Context, arg1 *trillian.SetMapLeavesRequest) (*trillian.SetMapLeavesResponse, error) { 104 ret := m.ctrl.Call(m, "SetLeaves", arg0, arg1) 105 ret0, _ := ret[0].(*trillian.SetMapLeavesResponse) 106 ret1, _ := ret[1].(error) 107 return ret0, ret1 108 } 109 110 // SetLeaves indicates an expected call of SetLeaves 111 func (mr *MockTrillianMapServerMockRecorder) SetLeaves(arg0, arg1 interface{}) *gomock.Call { 112 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLeaves", reflect.TypeOf((*MockTrillianMapServer)(nil).SetLeaves), arg0, arg1) 113 }