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