github.com/turingchain2020/turingchain@v1.1.21/client/mocks/api.go (about)

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