github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/abci/types/mocks/application.go (about)

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	context "context"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  	types "github.com/ari-anchor/sei-tendermint/abci/types"
    10  )
    11  
    12  // Application is an autogenerated mock type for the Application type
    13  type Application struct {
    14  	mock.Mock
    15  }
    16  
    17  // ApplySnapshotChunk provides a mock function with given fields: _a0, _a1
    18  func (_m *Application) ApplySnapshotChunk(_a0 context.Context, _a1 *types.RequestApplySnapshotChunk) (*types.ResponseApplySnapshotChunk, error) {
    19  	ret := _m.Called(_a0, _a1)
    20  
    21  	var r0 *types.ResponseApplySnapshotChunk
    22  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestApplySnapshotChunk) *types.ResponseApplySnapshotChunk); ok {
    23  		r0 = rf(_a0, _a1)
    24  	} else {
    25  		if ret.Get(0) != nil {
    26  			r0 = ret.Get(0).(*types.ResponseApplySnapshotChunk)
    27  		}
    28  	}
    29  
    30  	var r1 error
    31  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestApplySnapshotChunk) error); ok {
    32  		r1 = rf(_a0, _a1)
    33  	} else {
    34  		r1 = ret.Error(1)
    35  	}
    36  
    37  	return r0, r1
    38  }
    39  
    40  // CheckTx provides a mock function with given fields: _a0, _a1
    41  func (_m *Application) CheckTx(_a0 context.Context, _a1 *types.RequestCheckTx) (*types.ResponseCheckTx, error) {
    42  	ret := _m.Called(_a0, _a1)
    43  
    44  	var r0 *types.ResponseCheckTx
    45  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestCheckTx) *types.ResponseCheckTx); ok {
    46  		r0 = rf(_a0, _a1)
    47  	} else {
    48  		if ret.Get(0) != nil {
    49  			r0 = ret.Get(0).(*types.ResponseCheckTx)
    50  		}
    51  	}
    52  
    53  	var r1 error
    54  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestCheckTx) error); ok {
    55  		r1 = rf(_a0, _a1)
    56  	} else {
    57  		r1 = ret.Error(1)
    58  	}
    59  
    60  	return r0, r1
    61  }
    62  
    63  // Commit provides a mock function with given fields: _a0
    64  func (_m *Application) Commit(_a0 context.Context) (*types.ResponseCommit, error) {
    65  	ret := _m.Called(_a0)
    66  
    67  	var r0 *types.ResponseCommit
    68  	if rf, ok := ret.Get(0).(func(context.Context) *types.ResponseCommit); ok {
    69  		r0 = rf(_a0)
    70  	} else {
    71  		if ret.Get(0) != nil {
    72  			r0 = ret.Get(0).(*types.ResponseCommit)
    73  		}
    74  	}
    75  
    76  	var r1 error
    77  	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
    78  		r1 = rf(_a0)
    79  	} else {
    80  		r1 = ret.Error(1)
    81  	}
    82  
    83  	return r0, r1
    84  }
    85  
    86  // ExtendVote provides a mock function with given fields: _a0, _a1
    87  func (_m *Application) ExtendVote(_a0 context.Context, _a1 *types.RequestExtendVote) (*types.ResponseExtendVote, error) {
    88  	ret := _m.Called(_a0, _a1)
    89  
    90  	var r0 *types.ResponseExtendVote
    91  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestExtendVote) *types.ResponseExtendVote); ok {
    92  		r0 = rf(_a0, _a1)
    93  	} else {
    94  		if ret.Get(0) != nil {
    95  			r0 = ret.Get(0).(*types.ResponseExtendVote)
    96  		}
    97  	}
    98  
    99  	var r1 error
   100  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestExtendVote) error); ok {
   101  		r1 = rf(_a0, _a1)
   102  	} else {
   103  		r1 = ret.Error(1)
   104  	}
   105  
   106  	return r0, r1
   107  }
   108  
   109  // FinalizeBlock provides a mock function with given fields: _a0, _a1
   110  func (_m *Application) FinalizeBlock(_a0 context.Context, _a1 *types.RequestFinalizeBlock) (*types.ResponseFinalizeBlock, error) {
   111  	ret := _m.Called(_a0, _a1)
   112  
   113  	var r0 *types.ResponseFinalizeBlock
   114  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestFinalizeBlock) *types.ResponseFinalizeBlock); ok {
   115  		r0 = rf(_a0, _a1)
   116  	} else {
   117  		if ret.Get(0) != nil {
   118  			r0 = ret.Get(0).(*types.ResponseFinalizeBlock)
   119  		}
   120  	}
   121  
   122  	var r1 error
   123  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestFinalizeBlock) error); ok {
   124  		r1 = rf(_a0, _a1)
   125  	} else {
   126  		r1 = ret.Error(1)
   127  	}
   128  
   129  	return r0, r1
   130  }
   131  
   132  // Info provides a mock function with given fields: _a0, _a1
   133  func (_m *Application) Info(_a0 context.Context, _a1 *types.RequestInfo) (*types.ResponseInfo, error) {
   134  	ret := _m.Called(_a0, _a1)
   135  
   136  	var r0 *types.ResponseInfo
   137  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestInfo) *types.ResponseInfo); ok {
   138  		r0 = rf(_a0, _a1)
   139  	} else {
   140  		if ret.Get(0) != nil {
   141  			r0 = ret.Get(0).(*types.ResponseInfo)
   142  		}
   143  	}
   144  
   145  	var r1 error
   146  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestInfo) error); ok {
   147  		r1 = rf(_a0, _a1)
   148  	} else {
   149  		r1 = ret.Error(1)
   150  	}
   151  
   152  	return r0, r1
   153  }
   154  
   155  // InitChain provides a mock function with given fields: _a0, _a1
   156  func (_m *Application) InitChain(_a0 context.Context, _a1 *types.RequestInitChain) (*types.ResponseInitChain, error) {
   157  	ret := _m.Called(_a0, _a1)
   158  
   159  	var r0 *types.ResponseInitChain
   160  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestInitChain) *types.ResponseInitChain); ok {
   161  		r0 = rf(_a0, _a1)
   162  	} else {
   163  		if ret.Get(0) != nil {
   164  			r0 = ret.Get(0).(*types.ResponseInitChain)
   165  		}
   166  	}
   167  
   168  	var r1 error
   169  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestInitChain) error); ok {
   170  		r1 = rf(_a0, _a1)
   171  	} else {
   172  		r1 = ret.Error(1)
   173  	}
   174  
   175  	return r0, r1
   176  }
   177  
   178  // ListSnapshots provides a mock function with given fields: _a0, _a1
   179  func (_m *Application) ListSnapshots(_a0 context.Context, _a1 *types.RequestListSnapshots) (*types.ResponseListSnapshots, error) {
   180  	ret := _m.Called(_a0, _a1)
   181  
   182  	var r0 *types.ResponseListSnapshots
   183  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestListSnapshots) *types.ResponseListSnapshots); ok {
   184  		r0 = rf(_a0, _a1)
   185  	} else {
   186  		if ret.Get(0) != nil {
   187  			r0 = ret.Get(0).(*types.ResponseListSnapshots)
   188  		}
   189  	}
   190  
   191  	var r1 error
   192  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestListSnapshots) error); ok {
   193  		r1 = rf(_a0, _a1)
   194  	} else {
   195  		r1 = ret.Error(1)
   196  	}
   197  
   198  	return r0, r1
   199  }
   200  
   201  // LoadLatest provides a mock function with given fields: _a0, _a1
   202  func (_m *Application) LoadLatest(_a0 context.Context, _a1 *types.RequestLoadLatest) (*types.ResponseLoadLatest, error) {
   203  	ret := _m.Called(_a0, _a1)
   204  
   205  	var r0 *types.ResponseLoadLatest
   206  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestLoadLatest) *types.ResponseLoadLatest); ok {
   207  		r0 = rf(_a0, _a1)
   208  	} else {
   209  		if ret.Get(0) != nil {
   210  			r0 = ret.Get(0).(*types.ResponseLoadLatest)
   211  		}
   212  	}
   213  
   214  	var r1 error
   215  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestLoadLatest) error); ok {
   216  		r1 = rf(_a0, _a1)
   217  	} else {
   218  		r1 = ret.Error(1)
   219  	}
   220  
   221  	return r0, r1
   222  }
   223  
   224  // LoadSnapshotChunk provides a mock function with given fields: _a0, _a1
   225  func (_m *Application) LoadSnapshotChunk(_a0 context.Context, _a1 *types.RequestLoadSnapshotChunk) (*types.ResponseLoadSnapshotChunk, error) {
   226  	ret := _m.Called(_a0, _a1)
   227  
   228  	var r0 *types.ResponseLoadSnapshotChunk
   229  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestLoadSnapshotChunk) *types.ResponseLoadSnapshotChunk); ok {
   230  		r0 = rf(_a0, _a1)
   231  	} else {
   232  		if ret.Get(0) != nil {
   233  			r0 = ret.Get(0).(*types.ResponseLoadSnapshotChunk)
   234  		}
   235  	}
   236  
   237  	var r1 error
   238  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestLoadSnapshotChunk) error); ok {
   239  		r1 = rf(_a0, _a1)
   240  	} else {
   241  		r1 = ret.Error(1)
   242  	}
   243  
   244  	return r0, r1
   245  }
   246  
   247  // OfferSnapshot provides a mock function with given fields: _a0, _a1
   248  func (_m *Application) OfferSnapshot(_a0 context.Context, _a1 *types.RequestOfferSnapshot) (*types.ResponseOfferSnapshot, error) {
   249  	ret := _m.Called(_a0, _a1)
   250  
   251  	var r0 *types.ResponseOfferSnapshot
   252  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestOfferSnapshot) *types.ResponseOfferSnapshot); ok {
   253  		r0 = rf(_a0, _a1)
   254  	} else {
   255  		if ret.Get(0) != nil {
   256  			r0 = ret.Get(0).(*types.ResponseOfferSnapshot)
   257  		}
   258  	}
   259  
   260  	var r1 error
   261  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestOfferSnapshot) error); ok {
   262  		r1 = rf(_a0, _a1)
   263  	} else {
   264  		r1 = ret.Error(1)
   265  	}
   266  
   267  	return r0, r1
   268  }
   269  
   270  // PrepareProposal provides a mock function with given fields: _a0, _a1
   271  func (_m *Application) PrepareProposal(_a0 context.Context, _a1 *types.RequestPrepareProposal) (*types.ResponsePrepareProposal, error) {
   272  	ret := _m.Called(_a0, _a1)
   273  
   274  	var r0 *types.ResponsePrepareProposal
   275  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestPrepareProposal) *types.ResponsePrepareProposal); ok {
   276  		r0 = rf(_a0, _a1)
   277  	} else {
   278  		if ret.Get(0) != nil {
   279  			r0 = ret.Get(0).(*types.ResponsePrepareProposal)
   280  		}
   281  	}
   282  
   283  	var r1 error
   284  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestPrepareProposal) error); ok {
   285  		r1 = rf(_a0, _a1)
   286  	} else {
   287  		r1 = ret.Error(1)
   288  	}
   289  
   290  	return r0, r1
   291  }
   292  
   293  // ProcessProposal provides a mock function with given fields: _a0, _a1
   294  func (_m *Application) ProcessProposal(_a0 context.Context, _a1 *types.RequestProcessProposal) (*types.ResponseProcessProposal, error) {
   295  	ret := _m.Called(_a0, _a1)
   296  
   297  	var r0 *types.ResponseProcessProposal
   298  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestProcessProposal) *types.ResponseProcessProposal); ok {
   299  		r0 = rf(_a0, _a1)
   300  	} else {
   301  		if ret.Get(0) != nil {
   302  			r0 = ret.Get(0).(*types.ResponseProcessProposal)
   303  		}
   304  	}
   305  
   306  	var r1 error
   307  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestProcessProposal) error); ok {
   308  		r1 = rf(_a0, _a1)
   309  	} else {
   310  		r1 = ret.Error(1)
   311  	}
   312  
   313  	return r0, r1
   314  }
   315  
   316  // Query provides a mock function with given fields: _a0, _a1
   317  func (_m *Application) Query(_a0 context.Context, _a1 *types.RequestQuery) (*types.ResponseQuery, error) {
   318  	ret := _m.Called(_a0, _a1)
   319  
   320  	var r0 *types.ResponseQuery
   321  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestQuery) *types.ResponseQuery); ok {
   322  		r0 = rf(_a0, _a1)
   323  	} else {
   324  		if ret.Get(0) != nil {
   325  			r0 = ret.Get(0).(*types.ResponseQuery)
   326  		}
   327  	}
   328  
   329  	var r1 error
   330  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestQuery) error); ok {
   331  		r1 = rf(_a0, _a1)
   332  	} else {
   333  		r1 = ret.Error(1)
   334  	}
   335  
   336  	return r0, r1
   337  }
   338  
   339  // VerifyVoteExtension provides a mock function with given fields: _a0, _a1
   340  func (_m *Application) VerifyVoteExtension(_a0 context.Context, _a1 *types.RequestVerifyVoteExtension) (*types.ResponseVerifyVoteExtension, error) {
   341  	ret := _m.Called(_a0, _a1)
   342  
   343  	var r0 *types.ResponseVerifyVoteExtension
   344  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestVerifyVoteExtension) *types.ResponseVerifyVoteExtension); ok {
   345  		r0 = rf(_a0, _a1)
   346  	} else {
   347  		if ret.Get(0) != nil {
   348  			r0 = ret.Get(0).(*types.ResponseVerifyVoteExtension)
   349  		}
   350  	}
   351  
   352  	var r1 error
   353  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestVerifyVoteExtension) error); ok {
   354  		r1 = rf(_a0, _a1)
   355  	} else {
   356  		r1 = ret.Error(1)
   357  	}
   358  
   359  	return r0, r1
   360  }
   361  
   362  type NewApplicationT interface {
   363  	mock.TestingT
   364  	Cleanup(func())
   365  }
   366  
   367  // NewApplication creates a new instance of Application. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   368  func NewApplication(t NewApplicationT) *Application {
   369  	mock := &Application{}
   370  	mock.Mock.Test(t)
   371  
   372  	t.Cleanup(func() { mock.AssertExpectations(t) })
   373  
   374  	return mock
   375  }