github.com/bartle-stripe/trillian@v1.2.1/storage/mock_storage.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/google/trillian/storage (interfaces: AdminStorage,AdminTX,LogStorage,LogTreeTX,MapStorage,MapTreeTX,ReadOnlyAdminTX,ReadOnlyLogTX,ReadOnlyLogTreeTX,ReadOnlyMapTreeTX)
     3  
     4  // Package storage is a generated GoMock package.
     5  package storage
     6  
     7  import (
     8  	context "context"
     9  	gomock "github.com/golang/mock/gomock"
    10  	trillian "github.com/google/trillian"
    11  	reflect "reflect"
    12  	time "time"
    13  )
    14  
    15  // MockAdminStorage is a mock of AdminStorage interface
    16  type MockAdminStorage struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockAdminStorageMockRecorder
    19  }
    20  
    21  // MockAdminStorageMockRecorder is the mock recorder for MockAdminStorage
    22  type MockAdminStorageMockRecorder struct {
    23  	mock *MockAdminStorage
    24  }
    25  
    26  // NewMockAdminStorage creates a new mock instance
    27  func NewMockAdminStorage(ctrl *gomock.Controller) *MockAdminStorage {
    28  	mock := &MockAdminStorage{ctrl: ctrl}
    29  	mock.recorder = &MockAdminStorageMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use
    34  func (m *MockAdminStorage) EXPECT() *MockAdminStorageMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // CheckDatabaseAccessible mocks base method
    39  func (m *MockAdminStorage) CheckDatabaseAccessible(arg0 context.Context) error {
    40  	ret := m.ctrl.Call(m, "CheckDatabaseAccessible", arg0)
    41  	ret0, _ := ret[0].(error)
    42  	return ret0
    43  }
    44  
    45  // CheckDatabaseAccessible indicates an expected call of CheckDatabaseAccessible
    46  func (mr *MockAdminStorageMockRecorder) CheckDatabaseAccessible(arg0 interface{}) *gomock.Call {
    47  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckDatabaseAccessible", reflect.TypeOf((*MockAdminStorage)(nil).CheckDatabaseAccessible), arg0)
    48  }
    49  
    50  // ReadWriteTransaction mocks base method
    51  func (m *MockAdminStorage) ReadWriteTransaction(arg0 context.Context, arg1 AdminTXFunc) error {
    52  	ret := m.ctrl.Call(m, "ReadWriteTransaction", arg0, arg1)
    53  	ret0, _ := ret[0].(error)
    54  	return ret0
    55  }
    56  
    57  // ReadWriteTransaction indicates an expected call of ReadWriteTransaction
    58  func (mr *MockAdminStorageMockRecorder) ReadWriteTransaction(arg0, arg1 interface{}) *gomock.Call {
    59  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadWriteTransaction", reflect.TypeOf((*MockAdminStorage)(nil).ReadWriteTransaction), arg0, arg1)
    60  }
    61  
    62  // Snapshot mocks base method
    63  func (m *MockAdminStorage) Snapshot(arg0 context.Context) (ReadOnlyAdminTX, error) {
    64  	ret := m.ctrl.Call(m, "Snapshot", arg0)
    65  	ret0, _ := ret[0].(ReadOnlyAdminTX)
    66  	ret1, _ := ret[1].(error)
    67  	return ret0, ret1
    68  }
    69  
    70  // Snapshot indicates an expected call of Snapshot
    71  func (mr *MockAdminStorageMockRecorder) Snapshot(arg0 interface{}) *gomock.Call {
    72  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Snapshot", reflect.TypeOf((*MockAdminStorage)(nil).Snapshot), arg0)
    73  }
    74  
    75  // MockAdminTX is a mock of AdminTX interface
    76  type MockAdminTX struct {
    77  	ctrl     *gomock.Controller
    78  	recorder *MockAdminTXMockRecorder
    79  }
    80  
    81  // MockAdminTXMockRecorder is the mock recorder for MockAdminTX
    82  type MockAdminTXMockRecorder struct {
    83  	mock *MockAdminTX
    84  }
    85  
    86  // NewMockAdminTX creates a new mock instance
    87  func NewMockAdminTX(ctrl *gomock.Controller) *MockAdminTX {
    88  	mock := &MockAdminTX{ctrl: ctrl}
    89  	mock.recorder = &MockAdminTXMockRecorder{mock}
    90  	return mock
    91  }
    92  
    93  // EXPECT returns an object that allows the caller to indicate expected use
    94  func (m *MockAdminTX) EXPECT() *MockAdminTXMockRecorder {
    95  	return m.recorder
    96  }
    97  
    98  // Close mocks base method
    99  func (m *MockAdminTX) Close() error {
   100  	ret := m.ctrl.Call(m, "Close")
   101  	ret0, _ := ret[0].(error)
   102  	return ret0
   103  }
   104  
   105  // Close indicates an expected call of Close
   106  func (mr *MockAdminTXMockRecorder) Close() *gomock.Call {
   107  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockAdminTX)(nil).Close))
   108  }
   109  
   110  // Commit mocks base method
   111  func (m *MockAdminTX) Commit() error {
   112  	ret := m.ctrl.Call(m, "Commit")
   113  	ret0, _ := ret[0].(error)
   114  	return ret0
   115  }
   116  
   117  // Commit indicates an expected call of Commit
   118  func (mr *MockAdminTXMockRecorder) Commit() *gomock.Call {
   119  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockAdminTX)(nil).Commit))
   120  }
   121  
   122  // CreateTree mocks base method
   123  func (m *MockAdminTX) CreateTree(arg0 context.Context, arg1 *trillian.Tree) (*trillian.Tree, error) {
   124  	ret := m.ctrl.Call(m, "CreateTree", arg0, arg1)
   125  	ret0, _ := ret[0].(*trillian.Tree)
   126  	ret1, _ := ret[1].(error)
   127  	return ret0, ret1
   128  }
   129  
   130  // CreateTree indicates an expected call of CreateTree
   131  func (mr *MockAdminTXMockRecorder) CreateTree(arg0, arg1 interface{}) *gomock.Call {
   132  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTree", reflect.TypeOf((*MockAdminTX)(nil).CreateTree), arg0, arg1)
   133  }
   134  
   135  // GetTree mocks base method
   136  func (m *MockAdminTX) GetTree(arg0 context.Context, arg1 int64) (*trillian.Tree, error) {
   137  	ret := m.ctrl.Call(m, "GetTree", arg0, arg1)
   138  	ret0, _ := ret[0].(*trillian.Tree)
   139  	ret1, _ := ret[1].(error)
   140  	return ret0, ret1
   141  }
   142  
   143  // GetTree indicates an expected call of GetTree
   144  func (mr *MockAdminTXMockRecorder) GetTree(arg0, arg1 interface{}) *gomock.Call {
   145  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTree", reflect.TypeOf((*MockAdminTX)(nil).GetTree), arg0, arg1)
   146  }
   147  
   148  // HardDeleteTree mocks base method
   149  func (m *MockAdminTX) HardDeleteTree(arg0 context.Context, arg1 int64) error {
   150  	ret := m.ctrl.Call(m, "HardDeleteTree", arg0, arg1)
   151  	ret0, _ := ret[0].(error)
   152  	return ret0
   153  }
   154  
   155  // HardDeleteTree indicates an expected call of HardDeleteTree
   156  func (mr *MockAdminTXMockRecorder) HardDeleteTree(arg0, arg1 interface{}) *gomock.Call {
   157  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HardDeleteTree", reflect.TypeOf((*MockAdminTX)(nil).HardDeleteTree), arg0, arg1)
   158  }
   159  
   160  // IsClosed mocks base method
   161  func (m *MockAdminTX) IsClosed() bool {
   162  	ret := m.ctrl.Call(m, "IsClosed")
   163  	ret0, _ := ret[0].(bool)
   164  	return ret0
   165  }
   166  
   167  // IsClosed indicates an expected call of IsClosed
   168  func (mr *MockAdminTXMockRecorder) IsClosed() *gomock.Call {
   169  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsClosed", reflect.TypeOf((*MockAdminTX)(nil).IsClosed))
   170  }
   171  
   172  // ListTreeIDs mocks base method
   173  func (m *MockAdminTX) ListTreeIDs(arg0 context.Context, arg1 bool) ([]int64, error) {
   174  	ret := m.ctrl.Call(m, "ListTreeIDs", arg0, arg1)
   175  	ret0, _ := ret[0].([]int64)
   176  	ret1, _ := ret[1].(error)
   177  	return ret0, ret1
   178  }
   179  
   180  // ListTreeIDs indicates an expected call of ListTreeIDs
   181  func (mr *MockAdminTXMockRecorder) ListTreeIDs(arg0, arg1 interface{}) *gomock.Call {
   182  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTreeIDs", reflect.TypeOf((*MockAdminTX)(nil).ListTreeIDs), arg0, arg1)
   183  }
   184  
   185  // ListTrees mocks base method
   186  func (m *MockAdminTX) ListTrees(arg0 context.Context, arg1 bool) ([]*trillian.Tree, error) {
   187  	ret := m.ctrl.Call(m, "ListTrees", arg0, arg1)
   188  	ret0, _ := ret[0].([]*trillian.Tree)
   189  	ret1, _ := ret[1].(error)
   190  	return ret0, ret1
   191  }
   192  
   193  // ListTrees indicates an expected call of ListTrees
   194  func (mr *MockAdminTXMockRecorder) ListTrees(arg0, arg1 interface{}) *gomock.Call {
   195  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrees", reflect.TypeOf((*MockAdminTX)(nil).ListTrees), arg0, arg1)
   196  }
   197  
   198  // Rollback mocks base method
   199  func (m *MockAdminTX) Rollback() error {
   200  	ret := m.ctrl.Call(m, "Rollback")
   201  	ret0, _ := ret[0].(error)
   202  	return ret0
   203  }
   204  
   205  // Rollback indicates an expected call of Rollback
   206  func (mr *MockAdminTXMockRecorder) Rollback() *gomock.Call {
   207  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rollback", reflect.TypeOf((*MockAdminTX)(nil).Rollback))
   208  }
   209  
   210  // SoftDeleteTree mocks base method
   211  func (m *MockAdminTX) SoftDeleteTree(arg0 context.Context, arg1 int64) (*trillian.Tree, error) {
   212  	ret := m.ctrl.Call(m, "SoftDeleteTree", arg0, arg1)
   213  	ret0, _ := ret[0].(*trillian.Tree)
   214  	ret1, _ := ret[1].(error)
   215  	return ret0, ret1
   216  }
   217  
   218  // SoftDeleteTree indicates an expected call of SoftDeleteTree
   219  func (mr *MockAdminTXMockRecorder) SoftDeleteTree(arg0, arg1 interface{}) *gomock.Call {
   220  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SoftDeleteTree", reflect.TypeOf((*MockAdminTX)(nil).SoftDeleteTree), arg0, arg1)
   221  }
   222  
   223  // UndeleteTree mocks base method
   224  func (m *MockAdminTX) UndeleteTree(arg0 context.Context, arg1 int64) (*trillian.Tree, error) {
   225  	ret := m.ctrl.Call(m, "UndeleteTree", arg0, arg1)
   226  	ret0, _ := ret[0].(*trillian.Tree)
   227  	ret1, _ := ret[1].(error)
   228  	return ret0, ret1
   229  }
   230  
   231  // UndeleteTree indicates an expected call of UndeleteTree
   232  func (mr *MockAdminTXMockRecorder) UndeleteTree(arg0, arg1 interface{}) *gomock.Call {
   233  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UndeleteTree", reflect.TypeOf((*MockAdminTX)(nil).UndeleteTree), arg0, arg1)
   234  }
   235  
   236  // UpdateTree mocks base method
   237  func (m *MockAdminTX) UpdateTree(arg0 context.Context, arg1 int64, arg2 func(*trillian.Tree)) (*trillian.Tree, error) {
   238  	ret := m.ctrl.Call(m, "UpdateTree", arg0, arg1, arg2)
   239  	ret0, _ := ret[0].(*trillian.Tree)
   240  	ret1, _ := ret[1].(error)
   241  	return ret0, ret1
   242  }
   243  
   244  // UpdateTree indicates an expected call of UpdateTree
   245  func (mr *MockAdminTXMockRecorder) UpdateTree(arg0, arg1, arg2 interface{}) *gomock.Call {
   246  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTree", reflect.TypeOf((*MockAdminTX)(nil).UpdateTree), arg0, arg1, arg2)
   247  }
   248  
   249  // MockLogStorage is a mock of LogStorage interface
   250  type MockLogStorage struct {
   251  	ctrl     *gomock.Controller
   252  	recorder *MockLogStorageMockRecorder
   253  }
   254  
   255  // MockLogStorageMockRecorder is the mock recorder for MockLogStorage
   256  type MockLogStorageMockRecorder struct {
   257  	mock *MockLogStorage
   258  }
   259  
   260  // NewMockLogStorage creates a new mock instance
   261  func NewMockLogStorage(ctrl *gomock.Controller) *MockLogStorage {
   262  	mock := &MockLogStorage{ctrl: ctrl}
   263  	mock.recorder = &MockLogStorageMockRecorder{mock}
   264  	return mock
   265  }
   266  
   267  // EXPECT returns an object that allows the caller to indicate expected use
   268  func (m *MockLogStorage) EXPECT() *MockLogStorageMockRecorder {
   269  	return m.recorder
   270  }
   271  
   272  // AddSequencedLeaves mocks base method
   273  func (m *MockLogStorage) AddSequencedLeaves(arg0 context.Context, arg1 *trillian.Tree, arg2 []*trillian.LogLeaf, arg3 time.Time) ([]*trillian.QueuedLogLeaf, error) {
   274  	ret := m.ctrl.Call(m, "AddSequencedLeaves", arg0, arg1, arg2, arg3)
   275  	ret0, _ := ret[0].([]*trillian.QueuedLogLeaf)
   276  	ret1, _ := ret[1].(error)
   277  	return ret0, ret1
   278  }
   279  
   280  // AddSequencedLeaves indicates an expected call of AddSequencedLeaves
   281  func (mr *MockLogStorageMockRecorder) AddSequencedLeaves(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   282  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSequencedLeaves", reflect.TypeOf((*MockLogStorage)(nil).AddSequencedLeaves), arg0, arg1, arg2, arg3)
   283  }
   284  
   285  // CheckDatabaseAccessible mocks base method
   286  func (m *MockLogStorage) CheckDatabaseAccessible(arg0 context.Context) error {
   287  	ret := m.ctrl.Call(m, "CheckDatabaseAccessible", arg0)
   288  	ret0, _ := ret[0].(error)
   289  	return ret0
   290  }
   291  
   292  // CheckDatabaseAccessible indicates an expected call of CheckDatabaseAccessible
   293  func (mr *MockLogStorageMockRecorder) CheckDatabaseAccessible(arg0 interface{}) *gomock.Call {
   294  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckDatabaseAccessible", reflect.TypeOf((*MockLogStorage)(nil).CheckDatabaseAccessible), arg0)
   295  }
   296  
   297  // QueueLeaves mocks base method
   298  func (m *MockLogStorage) QueueLeaves(arg0 context.Context, arg1 *trillian.Tree, arg2 []*trillian.LogLeaf, arg3 time.Time) ([]*trillian.QueuedLogLeaf, error) {
   299  	ret := m.ctrl.Call(m, "QueueLeaves", arg0, arg1, arg2, arg3)
   300  	ret0, _ := ret[0].([]*trillian.QueuedLogLeaf)
   301  	ret1, _ := ret[1].(error)
   302  	return ret0, ret1
   303  }
   304  
   305  // QueueLeaves indicates an expected call of QueueLeaves
   306  func (mr *MockLogStorageMockRecorder) QueueLeaves(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   307  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueLeaves", reflect.TypeOf((*MockLogStorage)(nil).QueueLeaves), arg0, arg1, arg2, arg3)
   308  }
   309  
   310  // ReadWriteTransaction mocks base method
   311  func (m *MockLogStorage) ReadWriteTransaction(arg0 context.Context, arg1 *trillian.Tree, arg2 LogTXFunc) error {
   312  	ret := m.ctrl.Call(m, "ReadWriteTransaction", arg0, arg1, arg2)
   313  	ret0, _ := ret[0].(error)
   314  	return ret0
   315  }
   316  
   317  // ReadWriteTransaction indicates an expected call of ReadWriteTransaction
   318  func (mr *MockLogStorageMockRecorder) ReadWriteTransaction(arg0, arg1, arg2 interface{}) *gomock.Call {
   319  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadWriteTransaction", reflect.TypeOf((*MockLogStorage)(nil).ReadWriteTransaction), arg0, arg1, arg2)
   320  }
   321  
   322  // Snapshot mocks base method
   323  func (m *MockLogStorage) Snapshot(arg0 context.Context) (ReadOnlyLogTX, error) {
   324  	ret := m.ctrl.Call(m, "Snapshot", arg0)
   325  	ret0, _ := ret[0].(ReadOnlyLogTX)
   326  	ret1, _ := ret[1].(error)
   327  	return ret0, ret1
   328  }
   329  
   330  // Snapshot indicates an expected call of Snapshot
   331  func (mr *MockLogStorageMockRecorder) Snapshot(arg0 interface{}) *gomock.Call {
   332  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Snapshot", reflect.TypeOf((*MockLogStorage)(nil).Snapshot), arg0)
   333  }
   334  
   335  // SnapshotForTree mocks base method
   336  func (m *MockLogStorage) SnapshotForTree(arg0 context.Context, arg1 *trillian.Tree) (ReadOnlyLogTreeTX, error) {
   337  	ret := m.ctrl.Call(m, "SnapshotForTree", arg0, arg1)
   338  	ret0, _ := ret[0].(ReadOnlyLogTreeTX)
   339  	ret1, _ := ret[1].(error)
   340  	return ret0, ret1
   341  }
   342  
   343  // SnapshotForTree indicates an expected call of SnapshotForTree
   344  func (mr *MockLogStorageMockRecorder) SnapshotForTree(arg0, arg1 interface{}) *gomock.Call {
   345  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SnapshotForTree", reflect.TypeOf((*MockLogStorage)(nil).SnapshotForTree), arg0, arg1)
   346  }
   347  
   348  // MockLogTreeTX is a mock of LogTreeTX interface
   349  type MockLogTreeTX struct {
   350  	ctrl     *gomock.Controller
   351  	recorder *MockLogTreeTXMockRecorder
   352  }
   353  
   354  // MockLogTreeTXMockRecorder is the mock recorder for MockLogTreeTX
   355  type MockLogTreeTXMockRecorder struct {
   356  	mock *MockLogTreeTX
   357  }
   358  
   359  // NewMockLogTreeTX creates a new mock instance
   360  func NewMockLogTreeTX(ctrl *gomock.Controller) *MockLogTreeTX {
   361  	mock := &MockLogTreeTX{ctrl: ctrl}
   362  	mock.recorder = &MockLogTreeTXMockRecorder{mock}
   363  	return mock
   364  }
   365  
   366  // EXPECT returns an object that allows the caller to indicate expected use
   367  func (m *MockLogTreeTX) EXPECT() *MockLogTreeTXMockRecorder {
   368  	return m.recorder
   369  }
   370  
   371  // AddSequencedLeaves mocks base method
   372  func (m *MockLogTreeTX) AddSequencedLeaves(arg0 context.Context, arg1 []*trillian.LogLeaf, arg2 time.Time) ([]*trillian.QueuedLogLeaf, error) {
   373  	ret := m.ctrl.Call(m, "AddSequencedLeaves", arg0, arg1, arg2)
   374  	ret0, _ := ret[0].([]*trillian.QueuedLogLeaf)
   375  	ret1, _ := ret[1].(error)
   376  	return ret0, ret1
   377  }
   378  
   379  // AddSequencedLeaves indicates an expected call of AddSequencedLeaves
   380  func (mr *MockLogTreeTXMockRecorder) AddSequencedLeaves(arg0, arg1, arg2 interface{}) *gomock.Call {
   381  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSequencedLeaves", reflect.TypeOf((*MockLogTreeTX)(nil).AddSequencedLeaves), arg0, arg1, arg2)
   382  }
   383  
   384  // Close mocks base method
   385  func (m *MockLogTreeTX) Close() error {
   386  	ret := m.ctrl.Call(m, "Close")
   387  	ret0, _ := ret[0].(error)
   388  	return ret0
   389  }
   390  
   391  // Close indicates an expected call of Close
   392  func (mr *MockLogTreeTXMockRecorder) Close() *gomock.Call {
   393  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockLogTreeTX)(nil).Close))
   394  }
   395  
   396  // Commit mocks base method
   397  func (m *MockLogTreeTX) Commit() error {
   398  	ret := m.ctrl.Call(m, "Commit")
   399  	ret0, _ := ret[0].(error)
   400  	return ret0
   401  }
   402  
   403  // Commit indicates an expected call of Commit
   404  func (mr *MockLogTreeTXMockRecorder) Commit() *gomock.Call {
   405  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockLogTreeTX)(nil).Commit))
   406  }
   407  
   408  // DequeueLeaves mocks base method
   409  func (m *MockLogTreeTX) DequeueLeaves(arg0 context.Context, arg1 int, arg2 time.Time) ([]*trillian.LogLeaf, error) {
   410  	ret := m.ctrl.Call(m, "DequeueLeaves", arg0, arg1, arg2)
   411  	ret0, _ := ret[0].([]*trillian.LogLeaf)
   412  	ret1, _ := ret[1].(error)
   413  	return ret0, ret1
   414  }
   415  
   416  // DequeueLeaves indicates an expected call of DequeueLeaves
   417  func (mr *MockLogTreeTXMockRecorder) DequeueLeaves(arg0, arg1, arg2 interface{}) *gomock.Call {
   418  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DequeueLeaves", reflect.TypeOf((*MockLogTreeTX)(nil).DequeueLeaves), arg0, arg1, arg2)
   419  }
   420  
   421  // GetLeavesByHash mocks base method
   422  func (m *MockLogTreeTX) GetLeavesByHash(arg0 context.Context, arg1 [][]byte, arg2 bool) ([]*trillian.LogLeaf, error) {
   423  	ret := m.ctrl.Call(m, "GetLeavesByHash", arg0, arg1, arg2)
   424  	ret0, _ := ret[0].([]*trillian.LogLeaf)
   425  	ret1, _ := ret[1].(error)
   426  	return ret0, ret1
   427  }
   428  
   429  // GetLeavesByHash indicates an expected call of GetLeavesByHash
   430  func (mr *MockLogTreeTXMockRecorder) GetLeavesByHash(arg0, arg1, arg2 interface{}) *gomock.Call {
   431  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeavesByHash", reflect.TypeOf((*MockLogTreeTX)(nil).GetLeavesByHash), arg0, arg1, arg2)
   432  }
   433  
   434  // GetLeavesByIndex mocks base method
   435  func (m *MockLogTreeTX) GetLeavesByIndex(arg0 context.Context, arg1 []int64) ([]*trillian.LogLeaf, error) {
   436  	ret := m.ctrl.Call(m, "GetLeavesByIndex", arg0, arg1)
   437  	ret0, _ := ret[0].([]*trillian.LogLeaf)
   438  	ret1, _ := ret[1].(error)
   439  	return ret0, ret1
   440  }
   441  
   442  // GetLeavesByIndex indicates an expected call of GetLeavesByIndex
   443  func (mr *MockLogTreeTXMockRecorder) GetLeavesByIndex(arg0, arg1 interface{}) *gomock.Call {
   444  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeavesByIndex", reflect.TypeOf((*MockLogTreeTX)(nil).GetLeavesByIndex), arg0, arg1)
   445  }
   446  
   447  // GetLeavesByRange mocks base method
   448  func (m *MockLogTreeTX) GetLeavesByRange(arg0 context.Context, arg1, arg2 int64) ([]*trillian.LogLeaf, error) {
   449  	ret := m.ctrl.Call(m, "GetLeavesByRange", arg0, arg1, arg2)
   450  	ret0, _ := ret[0].([]*trillian.LogLeaf)
   451  	ret1, _ := ret[1].(error)
   452  	return ret0, ret1
   453  }
   454  
   455  // GetLeavesByRange indicates an expected call of GetLeavesByRange
   456  func (mr *MockLogTreeTXMockRecorder) GetLeavesByRange(arg0, arg1, arg2 interface{}) *gomock.Call {
   457  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeavesByRange", reflect.TypeOf((*MockLogTreeTX)(nil).GetLeavesByRange), arg0, arg1, arg2)
   458  }
   459  
   460  // GetMerkleNodes mocks base method
   461  func (m *MockLogTreeTX) GetMerkleNodes(arg0 context.Context, arg1 int64, arg2 []NodeID) ([]Node, error) {
   462  	ret := m.ctrl.Call(m, "GetMerkleNodes", arg0, arg1, arg2)
   463  	ret0, _ := ret[0].([]Node)
   464  	ret1, _ := ret[1].(error)
   465  	return ret0, ret1
   466  }
   467  
   468  // GetMerkleNodes indicates an expected call of GetMerkleNodes
   469  func (mr *MockLogTreeTXMockRecorder) GetMerkleNodes(arg0, arg1, arg2 interface{}) *gomock.Call {
   470  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMerkleNodes", reflect.TypeOf((*MockLogTreeTX)(nil).GetMerkleNodes), arg0, arg1, arg2)
   471  }
   472  
   473  // GetSequencedLeafCount mocks base method
   474  func (m *MockLogTreeTX) GetSequencedLeafCount(arg0 context.Context) (int64, error) {
   475  	ret := m.ctrl.Call(m, "GetSequencedLeafCount", arg0)
   476  	ret0, _ := ret[0].(int64)
   477  	ret1, _ := ret[1].(error)
   478  	return ret0, ret1
   479  }
   480  
   481  // GetSequencedLeafCount indicates an expected call of GetSequencedLeafCount
   482  func (mr *MockLogTreeTXMockRecorder) GetSequencedLeafCount(arg0 interface{}) *gomock.Call {
   483  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSequencedLeafCount", reflect.TypeOf((*MockLogTreeTX)(nil).GetSequencedLeafCount), arg0)
   484  }
   485  
   486  // IsOpen mocks base method
   487  func (m *MockLogTreeTX) IsOpen() bool {
   488  	ret := m.ctrl.Call(m, "IsOpen")
   489  	ret0, _ := ret[0].(bool)
   490  	return ret0
   491  }
   492  
   493  // IsOpen indicates an expected call of IsOpen
   494  func (mr *MockLogTreeTXMockRecorder) IsOpen() *gomock.Call {
   495  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOpen", reflect.TypeOf((*MockLogTreeTX)(nil).IsOpen))
   496  }
   497  
   498  // LatestSignedLogRoot mocks base method
   499  func (m *MockLogTreeTX) LatestSignedLogRoot(arg0 context.Context) (trillian.SignedLogRoot, error) {
   500  	ret := m.ctrl.Call(m, "LatestSignedLogRoot", arg0)
   501  	ret0, _ := ret[0].(trillian.SignedLogRoot)
   502  	ret1, _ := ret[1].(error)
   503  	return ret0, ret1
   504  }
   505  
   506  // LatestSignedLogRoot indicates an expected call of LatestSignedLogRoot
   507  func (mr *MockLogTreeTXMockRecorder) LatestSignedLogRoot(arg0 interface{}) *gomock.Call {
   508  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LatestSignedLogRoot", reflect.TypeOf((*MockLogTreeTX)(nil).LatestSignedLogRoot), arg0)
   509  }
   510  
   511  // QueueLeaves mocks base method
   512  func (m *MockLogTreeTX) QueueLeaves(arg0 context.Context, arg1 []*trillian.LogLeaf, arg2 time.Time) ([]*trillian.LogLeaf, error) {
   513  	ret := m.ctrl.Call(m, "QueueLeaves", arg0, arg1, arg2)
   514  	ret0, _ := ret[0].([]*trillian.LogLeaf)
   515  	ret1, _ := ret[1].(error)
   516  	return ret0, ret1
   517  }
   518  
   519  // QueueLeaves indicates an expected call of QueueLeaves
   520  func (mr *MockLogTreeTXMockRecorder) QueueLeaves(arg0, arg1, arg2 interface{}) *gomock.Call {
   521  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueLeaves", reflect.TypeOf((*MockLogTreeTX)(nil).QueueLeaves), arg0, arg1, arg2)
   522  }
   523  
   524  // ReadRevision mocks base method
   525  func (m *MockLogTreeTX) ReadRevision() int64 {
   526  	ret := m.ctrl.Call(m, "ReadRevision")
   527  	ret0, _ := ret[0].(int64)
   528  	return ret0
   529  }
   530  
   531  // ReadRevision indicates an expected call of ReadRevision
   532  func (mr *MockLogTreeTXMockRecorder) ReadRevision() *gomock.Call {
   533  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadRevision", reflect.TypeOf((*MockLogTreeTX)(nil).ReadRevision))
   534  }
   535  
   536  // Rollback mocks base method
   537  func (m *MockLogTreeTX) Rollback() error {
   538  	ret := m.ctrl.Call(m, "Rollback")
   539  	ret0, _ := ret[0].(error)
   540  	return ret0
   541  }
   542  
   543  // Rollback indicates an expected call of Rollback
   544  func (mr *MockLogTreeTXMockRecorder) Rollback() *gomock.Call {
   545  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rollback", reflect.TypeOf((*MockLogTreeTX)(nil).Rollback))
   546  }
   547  
   548  // SetMerkleNodes mocks base method
   549  func (m *MockLogTreeTX) SetMerkleNodes(arg0 context.Context, arg1 []Node) error {
   550  	ret := m.ctrl.Call(m, "SetMerkleNodes", arg0, arg1)
   551  	ret0, _ := ret[0].(error)
   552  	return ret0
   553  }
   554  
   555  // SetMerkleNodes indicates an expected call of SetMerkleNodes
   556  func (mr *MockLogTreeTXMockRecorder) SetMerkleNodes(arg0, arg1 interface{}) *gomock.Call {
   557  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMerkleNodes", reflect.TypeOf((*MockLogTreeTX)(nil).SetMerkleNodes), arg0, arg1)
   558  }
   559  
   560  // StoreSignedLogRoot mocks base method
   561  func (m *MockLogTreeTX) StoreSignedLogRoot(arg0 context.Context, arg1 trillian.SignedLogRoot) error {
   562  	ret := m.ctrl.Call(m, "StoreSignedLogRoot", arg0, arg1)
   563  	ret0, _ := ret[0].(error)
   564  	return ret0
   565  }
   566  
   567  // StoreSignedLogRoot indicates an expected call of StoreSignedLogRoot
   568  func (mr *MockLogTreeTXMockRecorder) StoreSignedLogRoot(arg0, arg1 interface{}) *gomock.Call {
   569  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreSignedLogRoot", reflect.TypeOf((*MockLogTreeTX)(nil).StoreSignedLogRoot), arg0, arg1)
   570  }
   571  
   572  // UpdateSequencedLeaves mocks base method
   573  func (m *MockLogTreeTX) UpdateSequencedLeaves(arg0 context.Context, arg1 []*trillian.LogLeaf) error {
   574  	ret := m.ctrl.Call(m, "UpdateSequencedLeaves", arg0, arg1)
   575  	ret0, _ := ret[0].(error)
   576  	return ret0
   577  }
   578  
   579  // UpdateSequencedLeaves indicates an expected call of UpdateSequencedLeaves
   580  func (mr *MockLogTreeTXMockRecorder) UpdateSequencedLeaves(arg0, arg1 interface{}) *gomock.Call {
   581  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSequencedLeaves", reflect.TypeOf((*MockLogTreeTX)(nil).UpdateSequencedLeaves), arg0, arg1)
   582  }
   583  
   584  // WriteRevision mocks base method
   585  func (m *MockLogTreeTX) WriteRevision() int64 {
   586  	ret := m.ctrl.Call(m, "WriteRevision")
   587  	ret0, _ := ret[0].(int64)
   588  	return ret0
   589  }
   590  
   591  // WriteRevision indicates an expected call of WriteRevision
   592  func (mr *MockLogTreeTXMockRecorder) WriteRevision() *gomock.Call {
   593  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteRevision", reflect.TypeOf((*MockLogTreeTX)(nil).WriteRevision))
   594  }
   595  
   596  // MockMapStorage is a mock of MapStorage interface
   597  type MockMapStorage struct {
   598  	ctrl     *gomock.Controller
   599  	recorder *MockMapStorageMockRecorder
   600  }
   601  
   602  // MockMapStorageMockRecorder is the mock recorder for MockMapStorage
   603  type MockMapStorageMockRecorder struct {
   604  	mock *MockMapStorage
   605  }
   606  
   607  // NewMockMapStorage creates a new mock instance
   608  func NewMockMapStorage(ctrl *gomock.Controller) *MockMapStorage {
   609  	mock := &MockMapStorage{ctrl: ctrl}
   610  	mock.recorder = &MockMapStorageMockRecorder{mock}
   611  	return mock
   612  }
   613  
   614  // EXPECT returns an object that allows the caller to indicate expected use
   615  func (m *MockMapStorage) EXPECT() *MockMapStorageMockRecorder {
   616  	return m.recorder
   617  }
   618  
   619  // CheckDatabaseAccessible mocks base method
   620  func (m *MockMapStorage) CheckDatabaseAccessible(arg0 context.Context) error {
   621  	ret := m.ctrl.Call(m, "CheckDatabaseAccessible", arg0)
   622  	ret0, _ := ret[0].(error)
   623  	return ret0
   624  }
   625  
   626  // CheckDatabaseAccessible indicates an expected call of CheckDatabaseAccessible
   627  func (mr *MockMapStorageMockRecorder) CheckDatabaseAccessible(arg0 interface{}) *gomock.Call {
   628  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckDatabaseAccessible", reflect.TypeOf((*MockMapStorage)(nil).CheckDatabaseAccessible), arg0)
   629  }
   630  
   631  // ReadWriteTransaction mocks base method
   632  func (m *MockMapStorage) ReadWriteTransaction(arg0 context.Context, arg1 *trillian.Tree, arg2 MapTXFunc) error {
   633  	ret := m.ctrl.Call(m, "ReadWriteTransaction", arg0, arg1, arg2)
   634  	ret0, _ := ret[0].(error)
   635  	return ret0
   636  }
   637  
   638  // ReadWriteTransaction indicates an expected call of ReadWriteTransaction
   639  func (mr *MockMapStorageMockRecorder) ReadWriteTransaction(arg0, arg1, arg2 interface{}) *gomock.Call {
   640  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadWriteTransaction", reflect.TypeOf((*MockMapStorage)(nil).ReadWriteTransaction), arg0, arg1, arg2)
   641  }
   642  
   643  // Snapshot mocks base method
   644  func (m *MockMapStorage) Snapshot(arg0 context.Context) (ReadOnlyMapTX, error) {
   645  	ret := m.ctrl.Call(m, "Snapshot", arg0)
   646  	ret0, _ := ret[0].(ReadOnlyMapTX)
   647  	ret1, _ := ret[1].(error)
   648  	return ret0, ret1
   649  }
   650  
   651  // Snapshot indicates an expected call of Snapshot
   652  func (mr *MockMapStorageMockRecorder) Snapshot(arg0 interface{}) *gomock.Call {
   653  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Snapshot", reflect.TypeOf((*MockMapStorage)(nil).Snapshot), arg0)
   654  }
   655  
   656  // SnapshotForTree mocks base method
   657  func (m *MockMapStorage) SnapshotForTree(arg0 context.Context, arg1 *trillian.Tree) (ReadOnlyMapTreeTX, error) {
   658  	ret := m.ctrl.Call(m, "SnapshotForTree", arg0, arg1)
   659  	ret0, _ := ret[0].(ReadOnlyMapTreeTX)
   660  	ret1, _ := ret[1].(error)
   661  	return ret0, ret1
   662  }
   663  
   664  // SnapshotForTree indicates an expected call of SnapshotForTree
   665  func (mr *MockMapStorageMockRecorder) SnapshotForTree(arg0, arg1 interface{}) *gomock.Call {
   666  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SnapshotForTree", reflect.TypeOf((*MockMapStorage)(nil).SnapshotForTree), arg0, arg1)
   667  }
   668  
   669  // MockMapTreeTX is a mock of MapTreeTX interface
   670  type MockMapTreeTX struct {
   671  	ctrl     *gomock.Controller
   672  	recorder *MockMapTreeTXMockRecorder
   673  }
   674  
   675  // MockMapTreeTXMockRecorder is the mock recorder for MockMapTreeTX
   676  type MockMapTreeTXMockRecorder struct {
   677  	mock *MockMapTreeTX
   678  }
   679  
   680  // NewMockMapTreeTX creates a new mock instance
   681  func NewMockMapTreeTX(ctrl *gomock.Controller) *MockMapTreeTX {
   682  	mock := &MockMapTreeTX{ctrl: ctrl}
   683  	mock.recorder = &MockMapTreeTXMockRecorder{mock}
   684  	return mock
   685  }
   686  
   687  // EXPECT returns an object that allows the caller to indicate expected use
   688  func (m *MockMapTreeTX) EXPECT() *MockMapTreeTXMockRecorder {
   689  	return m.recorder
   690  }
   691  
   692  // Close mocks base method
   693  func (m *MockMapTreeTX) Close() error {
   694  	ret := m.ctrl.Call(m, "Close")
   695  	ret0, _ := ret[0].(error)
   696  	return ret0
   697  }
   698  
   699  // Close indicates an expected call of Close
   700  func (mr *MockMapTreeTXMockRecorder) Close() *gomock.Call {
   701  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockMapTreeTX)(nil).Close))
   702  }
   703  
   704  // Commit mocks base method
   705  func (m *MockMapTreeTX) Commit() error {
   706  	ret := m.ctrl.Call(m, "Commit")
   707  	ret0, _ := ret[0].(error)
   708  	return ret0
   709  }
   710  
   711  // Commit indicates an expected call of Commit
   712  func (mr *MockMapTreeTXMockRecorder) Commit() *gomock.Call {
   713  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockMapTreeTX)(nil).Commit))
   714  }
   715  
   716  // Get mocks base method
   717  func (m *MockMapTreeTX) Get(arg0 context.Context, arg1 int64, arg2 [][]byte) ([]trillian.MapLeaf, error) {
   718  	ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2)
   719  	ret0, _ := ret[0].([]trillian.MapLeaf)
   720  	ret1, _ := ret[1].(error)
   721  	return ret0, ret1
   722  }
   723  
   724  // Get indicates an expected call of Get
   725  func (mr *MockMapTreeTXMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call {
   726  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockMapTreeTX)(nil).Get), arg0, arg1, arg2)
   727  }
   728  
   729  // GetMerkleNodes mocks base method
   730  func (m *MockMapTreeTX) GetMerkleNodes(arg0 context.Context, arg1 int64, arg2 []NodeID) ([]Node, error) {
   731  	ret := m.ctrl.Call(m, "GetMerkleNodes", arg0, arg1, arg2)
   732  	ret0, _ := ret[0].([]Node)
   733  	ret1, _ := ret[1].(error)
   734  	return ret0, ret1
   735  }
   736  
   737  // GetMerkleNodes indicates an expected call of GetMerkleNodes
   738  func (mr *MockMapTreeTXMockRecorder) GetMerkleNodes(arg0, arg1, arg2 interface{}) *gomock.Call {
   739  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMerkleNodes", reflect.TypeOf((*MockMapTreeTX)(nil).GetMerkleNodes), arg0, arg1, arg2)
   740  }
   741  
   742  // GetSignedMapRoot mocks base method
   743  func (m *MockMapTreeTX) GetSignedMapRoot(arg0 context.Context, arg1 int64) (trillian.SignedMapRoot, error) {
   744  	ret := m.ctrl.Call(m, "GetSignedMapRoot", arg0, arg1)
   745  	ret0, _ := ret[0].(trillian.SignedMapRoot)
   746  	ret1, _ := ret[1].(error)
   747  	return ret0, ret1
   748  }
   749  
   750  // GetSignedMapRoot indicates an expected call of GetSignedMapRoot
   751  func (mr *MockMapTreeTXMockRecorder) GetSignedMapRoot(arg0, arg1 interface{}) *gomock.Call {
   752  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSignedMapRoot", reflect.TypeOf((*MockMapTreeTX)(nil).GetSignedMapRoot), arg0, arg1)
   753  }
   754  
   755  // IsOpen mocks base method
   756  func (m *MockMapTreeTX) IsOpen() bool {
   757  	ret := m.ctrl.Call(m, "IsOpen")
   758  	ret0, _ := ret[0].(bool)
   759  	return ret0
   760  }
   761  
   762  // IsOpen indicates an expected call of IsOpen
   763  func (mr *MockMapTreeTXMockRecorder) IsOpen() *gomock.Call {
   764  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOpen", reflect.TypeOf((*MockMapTreeTX)(nil).IsOpen))
   765  }
   766  
   767  // LatestSignedMapRoot mocks base method
   768  func (m *MockMapTreeTX) LatestSignedMapRoot(arg0 context.Context) (trillian.SignedMapRoot, error) {
   769  	ret := m.ctrl.Call(m, "LatestSignedMapRoot", arg0)
   770  	ret0, _ := ret[0].(trillian.SignedMapRoot)
   771  	ret1, _ := ret[1].(error)
   772  	return ret0, ret1
   773  }
   774  
   775  // LatestSignedMapRoot indicates an expected call of LatestSignedMapRoot
   776  func (mr *MockMapTreeTXMockRecorder) LatestSignedMapRoot(arg0 interface{}) *gomock.Call {
   777  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LatestSignedMapRoot", reflect.TypeOf((*MockMapTreeTX)(nil).LatestSignedMapRoot), arg0)
   778  }
   779  
   780  // ReadRevision mocks base method
   781  func (m *MockMapTreeTX) ReadRevision() int64 {
   782  	ret := m.ctrl.Call(m, "ReadRevision")
   783  	ret0, _ := ret[0].(int64)
   784  	return ret0
   785  }
   786  
   787  // ReadRevision indicates an expected call of ReadRevision
   788  func (mr *MockMapTreeTXMockRecorder) ReadRevision() *gomock.Call {
   789  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadRevision", reflect.TypeOf((*MockMapTreeTX)(nil).ReadRevision))
   790  }
   791  
   792  // Rollback mocks base method
   793  func (m *MockMapTreeTX) Rollback() error {
   794  	ret := m.ctrl.Call(m, "Rollback")
   795  	ret0, _ := ret[0].(error)
   796  	return ret0
   797  }
   798  
   799  // Rollback indicates an expected call of Rollback
   800  func (mr *MockMapTreeTXMockRecorder) Rollback() *gomock.Call {
   801  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rollback", reflect.TypeOf((*MockMapTreeTX)(nil).Rollback))
   802  }
   803  
   804  // Set mocks base method
   805  func (m *MockMapTreeTX) Set(arg0 context.Context, arg1 []byte, arg2 trillian.MapLeaf) error {
   806  	ret := m.ctrl.Call(m, "Set", arg0, arg1, arg2)
   807  	ret0, _ := ret[0].(error)
   808  	return ret0
   809  }
   810  
   811  // Set indicates an expected call of Set
   812  func (mr *MockMapTreeTXMockRecorder) Set(arg0, arg1, arg2 interface{}) *gomock.Call {
   813  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockMapTreeTX)(nil).Set), arg0, arg1, arg2)
   814  }
   815  
   816  // SetMerkleNodes mocks base method
   817  func (m *MockMapTreeTX) SetMerkleNodes(arg0 context.Context, arg1 []Node) error {
   818  	ret := m.ctrl.Call(m, "SetMerkleNodes", arg0, arg1)
   819  	ret0, _ := ret[0].(error)
   820  	return ret0
   821  }
   822  
   823  // SetMerkleNodes indicates an expected call of SetMerkleNodes
   824  func (mr *MockMapTreeTXMockRecorder) SetMerkleNodes(arg0, arg1 interface{}) *gomock.Call {
   825  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMerkleNodes", reflect.TypeOf((*MockMapTreeTX)(nil).SetMerkleNodes), arg0, arg1)
   826  }
   827  
   828  // StoreSignedMapRoot mocks base method
   829  func (m *MockMapTreeTX) StoreSignedMapRoot(arg0 context.Context, arg1 trillian.SignedMapRoot) error {
   830  	ret := m.ctrl.Call(m, "StoreSignedMapRoot", arg0, arg1)
   831  	ret0, _ := ret[0].(error)
   832  	return ret0
   833  }
   834  
   835  // StoreSignedMapRoot indicates an expected call of StoreSignedMapRoot
   836  func (mr *MockMapTreeTXMockRecorder) StoreSignedMapRoot(arg0, arg1 interface{}) *gomock.Call {
   837  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreSignedMapRoot", reflect.TypeOf((*MockMapTreeTX)(nil).StoreSignedMapRoot), arg0, arg1)
   838  }
   839  
   840  // WriteRevision mocks base method
   841  func (m *MockMapTreeTX) WriteRevision() int64 {
   842  	ret := m.ctrl.Call(m, "WriteRevision")
   843  	ret0, _ := ret[0].(int64)
   844  	return ret0
   845  }
   846  
   847  // WriteRevision indicates an expected call of WriteRevision
   848  func (mr *MockMapTreeTXMockRecorder) WriteRevision() *gomock.Call {
   849  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteRevision", reflect.TypeOf((*MockMapTreeTX)(nil).WriteRevision))
   850  }
   851  
   852  // MockReadOnlyAdminTX is a mock of ReadOnlyAdminTX interface
   853  type MockReadOnlyAdminTX struct {
   854  	ctrl     *gomock.Controller
   855  	recorder *MockReadOnlyAdminTXMockRecorder
   856  }
   857  
   858  // MockReadOnlyAdminTXMockRecorder is the mock recorder for MockReadOnlyAdminTX
   859  type MockReadOnlyAdminTXMockRecorder struct {
   860  	mock *MockReadOnlyAdminTX
   861  }
   862  
   863  // NewMockReadOnlyAdminTX creates a new mock instance
   864  func NewMockReadOnlyAdminTX(ctrl *gomock.Controller) *MockReadOnlyAdminTX {
   865  	mock := &MockReadOnlyAdminTX{ctrl: ctrl}
   866  	mock.recorder = &MockReadOnlyAdminTXMockRecorder{mock}
   867  	return mock
   868  }
   869  
   870  // EXPECT returns an object that allows the caller to indicate expected use
   871  func (m *MockReadOnlyAdminTX) EXPECT() *MockReadOnlyAdminTXMockRecorder {
   872  	return m.recorder
   873  }
   874  
   875  // Close mocks base method
   876  func (m *MockReadOnlyAdminTX) Close() error {
   877  	ret := m.ctrl.Call(m, "Close")
   878  	ret0, _ := ret[0].(error)
   879  	return ret0
   880  }
   881  
   882  // Close indicates an expected call of Close
   883  func (mr *MockReadOnlyAdminTXMockRecorder) Close() *gomock.Call {
   884  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockReadOnlyAdminTX)(nil).Close))
   885  }
   886  
   887  // Commit mocks base method
   888  func (m *MockReadOnlyAdminTX) Commit() error {
   889  	ret := m.ctrl.Call(m, "Commit")
   890  	ret0, _ := ret[0].(error)
   891  	return ret0
   892  }
   893  
   894  // Commit indicates an expected call of Commit
   895  func (mr *MockReadOnlyAdminTXMockRecorder) Commit() *gomock.Call {
   896  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockReadOnlyAdminTX)(nil).Commit))
   897  }
   898  
   899  // GetTree mocks base method
   900  func (m *MockReadOnlyAdminTX) GetTree(arg0 context.Context, arg1 int64) (*trillian.Tree, error) {
   901  	ret := m.ctrl.Call(m, "GetTree", arg0, arg1)
   902  	ret0, _ := ret[0].(*trillian.Tree)
   903  	ret1, _ := ret[1].(error)
   904  	return ret0, ret1
   905  }
   906  
   907  // GetTree indicates an expected call of GetTree
   908  func (mr *MockReadOnlyAdminTXMockRecorder) GetTree(arg0, arg1 interface{}) *gomock.Call {
   909  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTree", reflect.TypeOf((*MockReadOnlyAdminTX)(nil).GetTree), arg0, arg1)
   910  }
   911  
   912  // IsClosed mocks base method
   913  func (m *MockReadOnlyAdminTX) IsClosed() bool {
   914  	ret := m.ctrl.Call(m, "IsClosed")
   915  	ret0, _ := ret[0].(bool)
   916  	return ret0
   917  }
   918  
   919  // IsClosed indicates an expected call of IsClosed
   920  func (mr *MockReadOnlyAdminTXMockRecorder) IsClosed() *gomock.Call {
   921  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsClosed", reflect.TypeOf((*MockReadOnlyAdminTX)(nil).IsClosed))
   922  }
   923  
   924  // ListTreeIDs mocks base method
   925  func (m *MockReadOnlyAdminTX) ListTreeIDs(arg0 context.Context, arg1 bool) ([]int64, error) {
   926  	ret := m.ctrl.Call(m, "ListTreeIDs", arg0, arg1)
   927  	ret0, _ := ret[0].([]int64)
   928  	ret1, _ := ret[1].(error)
   929  	return ret0, ret1
   930  }
   931  
   932  // ListTreeIDs indicates an expected call of ListTreeIDs
   933  func (mr *MockReadOnlyAdminTXMockRecorder) ListTreeIDs(arg0, arg1 interface{}) *gomock.Call {
   934  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTreeIDs", reflect.TypeOf((*MockReadOnlyAdminTX)(nil).ListTreeIDs), arg0, arg1)
   935  }
   936  
   937  // ListTrees mocks base method
   938  func (m *MockReadOnlyAdminTX) ListTrees(arg0 context.Context, arg1 bool) ([]*trillian.Tree, error) {
   939  	ret := m.ctrl.Call(m, "ListTrees", arg0, arg1)
   940  	ret0, _ := ret[0].([]*trillian.Tree)
   941  	ret1, _ := ret[1].(error)
   942  	return ret0, ret1
   943  }
   944  
   945  // ListTrees indicates an expected call of ListTrees
   946  func (mr *MockReadOnlyAdminTXMockRecorder) ListTrees(arg0, arg1 interface{}) *gomock.Call {
   947  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrees", reflect.TypeOf((*MockReadOnlyAdminTX)(nil).ListTrees), arg0, arg1)
   948  }
   949  
   950  // Rollback mocks base method
   951  func (m *MockReadOnlyAdminTX) Rollback() error {
   952  	ret := m.ctrl.Call(m, "Rollback")
   953  	ret0, _ := ret[0].(error)
   954  	return ret0
   955  }
   956  
   957  // Rollback indicates an expected call of Rollback
   958  func (mr *MockReadOnlyAdminTXMockRecorder) Rollback() *gomock.Call {
   959  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rollback", reflect.TypeOf((*MockReadOnlyAdminTX)(nil).Rollback))
   960  }
   961  
   962  // MockReadOnlyLogTX is a mock of ReadOnlyLogTX interface
   963  type MockReadOnlyLogTX struct {
   964  	ctrl     *gomock.Controller
   965  	recorder *MockReadOnlyLogTXMockRecorder
   966  }
   967  
   968  // MockReadOnlyLogTXMockRecorder is the mock recorder for MockReadOnlyLogTX
   969  type MockReadOnlyLogTXMockRecorder struct {
   970  	mock *MockReadOnlyLogTX
   971  }
   972  
   973  // NewMockReadOnlyLogTX creates a new mock instance
   974  func NewMockReadOnlyLogTX(ctrl *gomock.Controller) *MockReadOnlyLogTX {
   975  	mock := &MockReadOnlyLogTX{ctrl: ctrl}
   976  	mock.recorder = &MockReadOnlyLogTXMockRecorder{mock}
   977  	return mock
   978  }
   979  
   980  // EXPECT returns an object that allows the caller to indicate expected use
   981  func (m *MockReadOnlyLogTX) EXPECT() *MockReadOnlyLogTXMockRecorder {
   982  	return m.recorder
   983  }
   984  
   985  // Close mocks base method
   986  func (m *MockReadOnlyLogTX) Close() error {
   987  	ret := m.ctrl.Call(m, "Close")
   988  	ret0, _ := ret[0].(error)
   989  	return ret0
   990  }
   991  
   992  // Close indicates an expected call of Close
   993  func (mr *MockReadOnlyLogTXMockRecorder) Close() *gomock.Call {
   994  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockReadOnlyLogTX)(nil).Close))
   995  }
   996  
   997  // Commit mocks base method
   998  func (m *MockReadOnlyLogTX) Commit() error {
   999  	ret := m.ctrl.Call(m, "Commit")
  1000  	ret0, _ := ret[0].(error)
  1001  	return ret0
  1002  }
  1003  
  1004  // Commit indicates an expected call of Commit
  1005  func (mr *MockReadOnlyLogTXMockRecorder) Commit() *gomock.Call {
  1006  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockReadOnlyLogTX)(nil).Commit))
  1007  }
  1008  
  1009  // GetActiveLogIDs mocks base method
  1010  func (m *MockReadOnlyLogTX) GetActiveLogIDs(arg0 context.Context) ([]int64, error) {
  1011  	ret := m.ctrl.Call(m, "GetActiveLogIDs", arg0)
  1012  	ret0, _ := ret[0].([]int64)
  1013  	ret1, _ := ret[1].(error)
  1014  	return ret0, ret1
  1015  }
  1016  
  1017  // GetActiveLogIDs indicates an expected call of GetActiveLogIDs
  1018  func (mr *MockReadOnlyLogTXMockRecorder) GetActiveLogIDs(arg0 interface{}) *gomock.Call {
  1019  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetActiveLogIDs", reflect.TypeOf((*MockReadOnlyLogTX)(nil).GetActiveLogIDs), arg0)
  1020  }
  1021  
  1022  // GetUnsequencedCounts mocks base method
  1023  func (m *MockReadOnlyLogTX) GetUnsequencedCounts(arg0 context.Context) (CountByLogID, error) {
  1024  	ret := m.ctrl.Call(m, "GetUnsequencedCounts", arg0)
  1025  	ret0, _ := ret[0].(CountByLogID)
  1026  	ret1, _ := ret[1].(error)
  1027  	return ret0, ret1
  1028  }
  1029  
  1030  // GetUnsequencedCounts indicates an expected call of GetUnsequencedCounts
  1031  func (mr *MockReadOnlyLogTXMockRecorder) GetUnsequencedCounts(arg0 interface{}) *gomock.Call {
  1032  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnsequencedCounts", reflect.TypeOf((*MockReadOnlyLogTX)(nil).GetUnsequencedCounts), arg0)
  1033  }
  1034  
  1035  // Rollback mocks base method
  1036  func (m *MockReadOnlyLogTX) Rollback() error {
  1037  	ret := m.ctrl.Call(m, "Rollback")
  1038  	ret0, _ := ret[0].(error)
  1039  	return ret0
  1040  }
  1041  
  1042  // Rollback indicates an expected call of Rollback
  1043  func (mr *MockReadOnlyLogTXMockRecorder) Rollback() *gomock.Call {
  1044  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rollback", reflect.TypeOf((*MockReadOnlyLogTX)(nil).Rollback))
  1045  }
  1046  
  1047  // MockReadOnlyLogTreeTX is a mock of ReadOnlyLogTreeTX interface
  1048  type MockReadOnlyLogTreeTX struct {
  1049  	ctrl     *gomock.Controller
  1050  	recorder *MockReadOnlyLogTreeTXMockRecorder
  1051  }
  1052  
  1053  // MockReadOnlyLogTreeTXMockRecorder is the mock recorder for MockReadOnlyLogTreeTX
  1054  type MockReadOnlyLogTreeTXMockRecorder struct {
  1055  	mock *MockReadOnlyLogTreeTX
  1056  }
  1057  
  1058  // NewMockReadOnlyLogTreeTX creates a new mock instance
  1059  func NewMockReadOnlyLogTreeTX(ctrl *gomock.Controller) *MockReadOnlyLogTreeTX {
  1060  	mock := &MockReadOnlyLogTreeTX{ctrl: ctrl}
  1061  	mock.recorder = &MockReadOnlyLogTreeTXMockRecorder{mock}
  1062  	return mock
  1063  }
  1064  
  1065  // EXPECT returns an object that allows the caller to indicate expected use
  1066  func (m *MockReadOnlyLogTreeTX) EXPECT() *MockReadOnlyLogTreeTXMockRecorder {
  1067  	return m.recorder
  1068  }
  1069  
  1070  // Close mocks base method
  1071  func (m *MockReadOnlyLogTreeTX) Close() error {
  1072  	ret := m.ctrl.Call(m, "Close")
  1073  	ret0, _ := ret[0].(error)
  1074  	return ret0
  1075  }
  1076  
  1077  // Close indicates an expected call of Close
  1078  func (mr *MockReadOnlyLogTreeTXMockRecorder) Close() *gomock.Call {
  1079  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockReadOnlyLogTreeTX)(nil).Close))
  1080  }
  1081  
  1082  // Commit mocks base method
  1083  func (m *MockReadOnlyLogTreeTX) Commit() error {
  1084  	ret := m.ctrl.Call(m, "Commit")
  1085  	ret0, _ := ret[0].(error)
  1086  	return ret0
  1087  }
  1088  
  1089  // Commit indicates an expected call of Commit
  1090  func (mr *MockReadOnlyLogTreeTXMockRecorder) Commit() *gomock.Call {
  1091  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockReadOnlyLogTreeTX)(nil).Commit))
  1092  }
  1093  
  1094  // GetLeavesByHash mocks base method
  1095  func (m *MockReadOnlyLogTreeTX) GetLeavesByHash(arg0 context.Context, arg1 [][]byte, arg2 bool) ([]*trillian.LogLeaf, error) {
  1096  	ret := m.ctrl.Call(m, "GetLeavesByHash", arg0, arg1, arg2)
  1097  	ret0, _ := ret[0].([]*trillian.LogLeaf)
  1098  	ret1, _ := ret[1].(error)
  1099  	return ret0, ret1
  1100  }
  1101  
  1102  // GetLeavesByHash indicates an expected call of GetLeavesByHash
  1103  func (mr *MockReadOnlyLogTreeTXMockRecorder) GetLeavesByHash(arg0, arg1, arg2 interface{}) *gomock.Call {
  1104  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeavesByHash", reflect.TypeOf((*MockReadOnlyLogTreeTX)(nil).GetLeavesByHash), arg0, arg1, arg2)
  1105  }
  1106  
  1107  // GetLeavesByIndex mocks base method
  1108  func (m *MockReadOnlyLogTreeTX) GetLeavesByIndex(arg0 context.Context, arg1 []int64) ([]*trillian.LogLeaf, error) {
  1109  	ret := m.ctrl.Call(m, "GetLeavesByIndex", arg0, arg1)
  1110  	ret0, _ := ret[0].([]*trillian.LogLeaf)
  1111  	ret1, _ := ret[1].(error)
  1112  	return ret0, ret1
  1113  }
  1114  
  1115  // GetLeavesByIndex indicates an expected call of GetLeavesByIndex
  1116  func (mr *MockReadOnlyLogTreeTXMockRecorder) GetLeavesByIndex(arg0, arg1 interface{}) *gomock.Call {
  1117  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeavesByIndex", reflect.TypeOf((*MockReadOnlyLogTreeTX)(nil).GetLeavesByIndex), arg0, arg1)
  1118  }
  1119  
  1120  // GetLeavesByRange mocks base method
  1121  func (m *MockReadOnlyLogTreeTX) GetLeavesByRange(arg0 context.Context, arg1, arg2 int64) ([]*trillian.LogLeaf, error) {
  1122  	ret := m.ctrl.Call(m, "GetLeavesByRange", arg0, arg1, arg2)
  1123  	ret0, _ := ret[0].([]*trillian.LogLeaf)
  1124  	ret1, _ := ret[1].(error)
  1125  	return ret0, ret1
  1126  }
  1127  
  1128  // GetLeavesByRange indicates an expected call of GetLeavesByRange
  1129  func (mr *MockReadOnlyLogTreeTXMockRecorder) GetLeavesByRange(arg0, arg1, arg2 interface{}) *gomock.Call {
  1130  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeavesByRange", reflect.TypeOf((*MockReadOnlyLogTreeTX)(nil).GetLeavesByRange), arg0, arg1, arg2)
  1131  }
  1132  
  1133  // GetMerkleNodes mocks base method
  1134  func (m *MockReadOnlyLogTreeTX) GetMerkleNodes(arg0 context.Context, arg1 int64, arg2 []NodeID) ([]Node, error) {
  1135  	ret := m.ctrl.Call(m, "GetMerkleNodes", arg0, arg1, arg2)
  1136  	ret0, _ := ret[0].([]Node)
  1137  	ret1, _ := ret[1].(error)
  1138  	return ret0, ret1
  1139  }
  1140  
  1141  // GetMerkleNodes indicates an expected call of GetMerkleNodes
  1142  func (mr *MockReadOnlyLogTreeTXMockRecorder) GetMerkleNodes(arg0, arg1, arg2 interface{}) *gomock.Call {
  1143  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMerkleNodes", reflect.TypeOf((*MockReadOnlyLogTreeTX)(nil).GetMerkleNodes), arg0, arg1, arg2)
  1144  }
  1145  
  1146  // GetSequencedLeafCount mocks base method
  1147  func (m *MockReadOnlyLogTreeTX) GetSequencedLeafCount(arg0 context.Context) (int64, error) {
  1148  	ret := m.ctrl.Call(m, "GetSequencedLeafCount", arg0)
  1149  	ret0, _ := ret[0].(int64)
  1150  	ret1, _ := ret[1].(error)
  1151  	return ret0, ret1
  1152  }
  1153  
  1154  // GetSequencedLeafCount indicates an expected call of GetSequencedLeafCount
  1155  func (mr *MockReadOnlyLogTreeTXMockRecorder) GetSequencedLeafCount(arg0 interface{}) *gomock.Call {
  1156  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSequencedLeafCount", reflect.TypeOf((*MockReadOnlyLogTreeTX)(nil).GetSequencedLeafCount), arg0)
  1157  }
  1158  
  1159  // IsOpen mocks base method
  1160  func (m *MockReadOnlyLogTreeTX) IsOpen() bool {
  1161  	ret := m.ctrl.Call(m, "IsOpen")
  1162  	ret0, _ := ret[0].(bool)
  1163  	return ret0
  1164  }
  1165  
  1166  // IsOpen indicates an expected call of IsOpen
  1167  func (mr *MockReadOnlyLogTreeTXMockRecorder) IsOpen() *gomock.Call {
  1168  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOpen", reflect.TypeOf((*MockReadOnlyLogTreeTX)(nil).IsOpen))
  1169  }
  1170  
  1171  // LatestSignedLogRoot mocks base method
  1172  func (m *MockReadOnlyLogTreeTX) LatestSignedLogRoot(arg0 context.Context) (trillian.SignedLogRoot, error) {
  1173  	ret := m.ctrl.Call(m, "LatestSignedLogRoot", arg0)
  1174  	ret0, _ := ret[0].(trillian.SignedLogRoot)
  1175  	ret1, _ := ret[1].(error)
  1176  	return ret0, ret1
  1177  }
  1178  
  1179  // LatestSignedLogRoot indicates an expected call of LatestSignedLogRoot
  1180  func (mr *MockReadOnlyLogTreeTXMockRecorder) LatestSignedLogRoot(arg0 interface{}) *gomock.Call {
  1181  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LatestSignedLogRoot", reflect.TypeOf((*MockReadOnlyLogTreeTX)(nil).LatestSignedLogRoot), arg0)
  1182  }
  1183  
  1184  // ReadRevision mocks base method
  1185  func (m *MockReadOnlyLogTreeTX) ReadRevision() int64 {
  1186  	ret := m.ctrl.Call(m, "ReadRevision")
  1187  	ret0, _ := ret[0].(int64)
  1188  	return ret0
  1189  }
  1190  
  1191  // ReadRevision indicates an expected call of ReadRevision
  1192  func (mr *MockReadOnlyLogTreeTXMockRecorder) ReadRevision() *gomock.Call {
  1193  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadRevision", reflect.TypeOf((*MockReadOnlyLogTreeTX)(nil).ReadRevision))
  1194  }
  1195  
  1196  // Rollback mocks base method
  1197  func (m *MockReadOnlyLogTreeTX) Rollback() error {
  1198  	ret := m.ctrl.Call(m, "Rollback")
  1199  	ret0, _ := ret[0].(error)
  1200  	return ret0
  1201  }
  1202  
  1203  // Rollback indicates an expected call of Rollback
  1204  func (mr *MockReadOnlyLogTreeTXMockRecorder) Rollback() *gomock.Call {
  1205  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rollback", reflect.TypeOf((*MockReadOnlyLogTreeTX)(nil).Rollback))
  1206  }
  1207  
  1208  // MockReadOnlyMapTreeTX is a mock of ReadOnlyMapTreeTX interface
  1209  type MockReadOnlyMapTreeTX struct {
  1210  	ctrl     *gomock.Controller
  1211  	recorder *MockReadOnlyMapTreeTXMockRecorder
  1212  }
  1213  
  1214  // MockReadOnlyMapTreeTXMockRecorder is the mock recorder for MockReadOnlyMapTreeTX
  1215  type MockReadOnlyMapTreeTXMockRecorder struct {
  1216  	mock *MockReadOnlyMapTreeTX
  1217  }
  1218  
  1219  // NewMockReadOnlyMapTreeTX creates a new mock instance
  1220  func NewMockReadOnlyMapTreeTX(ctrl *gomock.Controller) *MockReadOnlyMapTreeTX {
  1221  	mock := &MockReadOnlyMapTreeTX{ctrl: ctrl}
  1222  	mock.recorder = &MockReadOnlyMapTreeTXMockRecorder{mock}
  1223  	return mock
  1224  }
  1225  
  1226  // EXPECT returns an object that allows the caller to indicate expected use
  1227  func (m *MockReadOnlyMapTreeTX) EXPECT() *MockReadOnlyMapTreeTXMockRecorder {
  1228  	return m.recorder
  1229  }
  1230  
  1231  // Close mocks base method
  1232  func (m *MockReadOnlyMapTreeTX) Close() error {
  1233  	ret := m.ctrl.Call(m, "Close")
  1234  	ret0, _ := ret[0].(error)
  1235  	return ret0
  1236  }
  1237  
  1238  // Close indicates an expected call of Close
  1239  func (mr *MockReadOnlyMapTreeTXMockRecorder) Close() *gomock.Call {
  1240  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockReadOnlyMapTreeTX)(nil).Close))
  1241  }
  1242  
  1243  // Commit mocks base method
  1244  func (m *MockReadOnlyMapTreeTX) Commit() error {
  1245  	ret := m.ctrl.Call(m, "Commit")
  1246  	ret0, _ := ret[0].(error)
  1247  	return ret0
  1248  }
  1249  
  1250  // Commit indicates an expected call of Commit
  1251  func (mr *MockReadOnlyMapTreeTXMockRecorder) Commit() *gomock.Call {
  1252  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockReadOnlyMapTreeTX)(nil).Commit))
  1253  }
  1254  
  1255  // Get mocks base method
  1256  func (m *MockReadOnlyMapTreeTX) Get(arg0 context.Context, arg1 int64, arg2 [][]byte) ([]trillian.MapLeaf, error) {
  1257  	ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2)
  1258  	ret0, _ := ret[0].([]trillian.MapLeaf)
  1259  	ret1, _ := ret[1].(error)
  1260  	return ret0, ret1
  1261  }
  1262  
  1263  // Get indicates an expected call of Get
  1264  func (mr *MockReadOnlyMapTreeTXMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call {
  1265  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockReadOnlyMapTreeTX)(nil).Get), arg0, arg1, arg2)
  1266  }
  1267  
  1268  // GetMerkleNodes mocks base method
  1269  func (m *MockReadOnlyMapTreeTX) GetMerkleNodes(arg0 context.Context, arg1 int64, arg2 []NodeID) ([]Node, error) {
  1270  	ret := m.ctrl.Call(m, "GetMerkleNodes", arg0, arg1, arg2)
  1271  	ret0, _ := ret[0].([]Node)
  1272  	ret1, _ := ret[1].(error)
  1273  	return ret0, ret1
  1274  }
  1275  
  1276  // GetMerkleNodes indicates an expected call of GetMerkleNodes
  1277  func (mr *MockReadOnlyMapTreeTXMockRecorder) GetMerkleNodes(arg0, arg1, arg2 interface{}) *gomock.Call {
  1278  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMerkleNodes", reflect.TypeOf((*MockReadOnlyMapTreeTX)(nil).GetMerkleNodes), arg0, arg1, arg2)
  1279  }
  1280  
  1281  // GetSignedMapRoot mocks base method
  1282  func (m *MockReadOnlyMapTreeTX) GetSignedMapRoot(arg0 context.Context, arg1 int64) (trillian.SignedMapRoot, error) {
  1283  	ret := m.ctrl.Call(m, "GetSignedMapRoot", arg0, arg1)
  1284  	ret0, _ := ret[0].(trillian.SignedMapRoot)
  1285  	ret1, _ := ret[1].(error)
  1286  	return ret0, ret1
  1287  }
  1288  
  1289  // GetSignedMapRoot indicates an expected call of GetSignedMapRoot
  1290  func (mr *MockReadOnlyMapTreeTXMockRecorder) GetSignedMapRoot(arg0, arg1 interface{}) *gomock.Call {
  1291  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSignedMapRoot", reflect.TypeOf((*MockReadOnlyMapTreeTX)(nil).GetSignedMapRoot), arg0, arg1)
  1292  }
  1293  
  1294  // IsOpen mocks base method
  1295  func (m *MockReadOnlyMapTreeTX) IsOpen() bool {
  1296  	ret := m.ctrl.Call(m, "IsOpen")
  1297  	ret0, _ := ret[0].(bool)
  1298  	return ret0
  1299  }
  1300  
  1301  // IsOpen indicates an expected call of IsOpen
  1302  func (mr *MockReadOnlyMapTreeTXMockRecorder) IsOpen() *gomock.Call {
  1303  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOpen", reflect.TypeOf((*MockReadOnlyMapTreeTX)(nil).IsOpen))
  1304  }
  1305  
  1306  // LatestSignedMapRoot mocks base method
  1307  func (m *MockReadOnlyMapTreeTX) LatestSignedMapRoot(arg0 context.Context) (trillian.SignedMapRoot, error) {
  1308  	ret := m.ctrl.Call(m, "LatestSignedMapRoot", arg0)
  1309  	ret0, _ := ret[0].(trillian.SignedMapRoot)
  1310  	ret1, _ := ret[1].(error)
  1311  	return ret0, ret1
  1312  }
  1313  
  1314  // LatestSignedMapRoot indicates an expected call of LatestSignedMapRoot
  1315  func (mr *MockReadOnlyMapTreeTXMockRecorder) LatestSignedMapRoot(arg0 interface{}) *gomock.Call {
  1316  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LatestSignedMapRoot", reflect.TypeOf((*MockReadOnlyMapTreeTX)(nil).LatestSignedMapRoot), arg0)
  1317  }
  1318  
  1319  // ReadRevision mocks base method
  1320  func (m *MockReadOnlyMapTreeTX) ReadRevision() int64 {
  1321  	ret := m.ctrl.Call(m, "ReadRevision")
  1322  	ret0, _ := ret[0].(int64)
  1323  	return ret0
  1324  }
  1325  
  1326  // ReadRevision indicates an expected call of ReadRevision
  1327  func (mr *MockReadOnlyMapTreeTXMockRecorder) ReadRevision() *gomock.Call {
  1328  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadRevision", reflect.TypeOf((*MockReadOnlyMapTreeTX)(nil).ReadRevision))
  1329  }
  1330  
  1331  // Rollback mocks base method
  1332  func (m *MockReadOnlyMapTreeTX) Rollback() error {
  1333  	ret := m.ctrl.Call(m, "Rollback")
  1334  	ret0, _ := ret[0].(error)
  1335  	return ret0
  1336  }
  1337  
  1338  // Rollback indicates an expected call of Rollback
  1339  func (mr *MockReadOnlyMapTreeTXMockRecorder) Rollback() *gomock.Call {
  1340  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rollback", reflect.TypeOf((*MockReadOnlyMapTreeTX)(nil).Rollback))
  1341  }