github.com/Finschia/ostracon@v1.1.5/proxy/mocks/app_conn_consensus.go (about)

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	abcicli "github.com/Finschia/ostracon/abci/client"
     7  	abcitypes "github.com/tendermint/tendermint/abci/types"
     8  
     9  	mock "github.com/stretchr/testify/mock"
    10  
    11  	types "github.com/Finschia/ostracon/abci/types"
    12  )
    13  
    14  // AppConnConsensus is an autogenerated mock type for the AppConnConsensus type
    15  type AppConnConsensus struct {
    16  	mock.Mock
    17  }
    18  
    19  // BeginBlockSync provides a mock function with given fields: _a0
    20  func (_m *AppConnConsensus) BeginBlockSync(_a0 types.RequestBeginBlock) (*abcitypes.ResponseBeginBlock, error) {
    21  	ret := _m.Called(_a0)
    22  
    23  	var r0 *abcitypes.ResponseBeginBlock
    24  	var r1 error
    25  	if rf, ok := ret.Get(0).(func(types.RequestBeginBlock) (*abcitypes.ResponseBeginBlock, error)); ok {
    26  		return rf(_a0)
    27  	}
    28  	if rf, ok := ret.Get(0).(func(types.RequestBeginBlock) *abcitypes.ResponseBeginBlock); ok {
    29  		r0 = rf(_a0)
    30  	} else {
    31  		if ret.Get(0) != nil {
    32  			r0 = ret.Get(0).(*abcitypes.ResponseBeginBlock)
    33  		}
    34  	}
    35  
    36  	if rf, ok := ret.Get(1).(func(types.RequestBeginBlock) error); ok {
    37  		r1 = rf(_a0)
    38  	} else {
    39  		r1 = ret.Error(1)
    40  	}
    41  
    42  	return r0, r1
    43  }
    44  
    45  // CommitSync provides a mock function with given fields:
    46  func (_m *AppConnConsensus) CommitSync() (*abcitypes.ResponseCommit, error) {
    47  	ret := _m.Called()
    48  
    49  	var r0 *abcitypes.ResponseCommit
    50  	var r1 error
    51  	if rf, ok := ret.Get(0).(func() (*abcitypes.ResponseCommit, error)); ok {
    52  		return rf()
    53  	}
    54  	if rf, ok := ret.Get(0).(func() *abcitypes.ResponseCommit); ok {
    55  		r0 = rf()
    56  	} else {
    57  		if ret.Get(0) != nil {
    58  			r0 = ret.Get(0).(*abcitypes.ResponseCommit)
    59  		}
    60  	}
    61  
    62  	if rf, ok := ret.Get(1).(func() error); ok {
    63  		r1 = rf()
    64  	} else {
    65  		r1 = ret.Error(1)
    66  	}
    67  
    68  	return r0, r1
    69  }
    70  
    71  // DeliverTxAsync provides a mock function with given fields: _a0, _a1
    72  func (_m *AppConnConsensus) DeliverTxAsync(_a0 abcitypes.RequestDeliverTx, _a1 abcicli.ResponseCallback) *abcicli.ReqRes {
    73  	ret := _m.Called(_a0, _a1)
    74  
    75  	var r0 *abcicli.ReqRes
    76  	if rf, ok := ret.Get(0).(func(abcitypes.RequestDeliverTx, abcicli.ResponseCallback) *abcicli.ReqRes); ok {
    77  		r0 = rf(_a0, _a1)
    78  	} else {
    79  		if ret.Get(0) != nil {
    80  			r0 = ret.Get(0).(*abcicli.ReqRes)
    81  		}
    82  	}
    83  
    84  	return r0
    85  }
    86  
    87  // EndBlockSync provides a mock function with given fields: _a0
    88  func (_m *AppConnConsensus) EndBlockSync(_a0 abcitypes.RequestEndBlock) (*abcitypes.ResponseEndBlock, error) {
    89  	ret := _m.Called(_a0)
    90  
    91  	var r0 *abcitypes.ResponseEndBlock
    92  	var r1 error
    93  	if rf, ok := ret.Get(0).(func(abcitypes.RequestEndBlock) (*abcitypes.ResponseEndBlock, error)); ok {
    94  		return rf(_a0)
    95  	}
    96  	if rf, ok := ret.Get(0).(func(abcitypes.RequestEndBlock) *abcitypes.ResponseEndBlock); ok {
    97  		r0 = rf(_a0)
    98  	} else {
    99  		if ret.Get(0) != nil {
   100  			r0 = ret.Get(0).(*abcitypes.ResponseEndBlock)
   101  		}
   102  	}
   103  
   104  	if rf, ok := ret.Get(1).(func(abcitypes.RequestEndBlock) error); ok {
   105  		r1 = rf(_a0)
   106  	} else {
   107  		r1 = ret.Error(1)
   108  	}
   109  
   110  	return r0, r1
   111  }
   112  
   113  // Error provides a mock function with given fields:
   114  func (_m *AppConnConsensus) Error() error {
   115  	ret := _m.Called()
   116  
   117  	var r0 error
   118  	if rf, ok := ret.Get(0).(func() error); ok {
   119  		r0 = rf()
   120  	} else {
   121  		r0 = ret.Error(0)
   122  	}
   123  
   124  	return r0
   125  }
   126  
   127  // InitChainSync provides a mock function with given fields: _a0
   128  func (_m *AppConnConsensus) InitChainSync(_a0 abcitypes.RequestInitChain) (*abcitypes.ResponseInitChain, error) {
   129  	ret := _m.Called(_a0)
   130  
   131  	var r0 *abcitypes.ResponseInitChain
   132  	var r1 error
   133  	if rf, ok := ret.Get(0).(func(abcitypes.RequestInitChain) (*abcitypes.ResponseInitChain, error)); ok {
   134  		return rf(_a0)
   135  	}
   136  	if rf, ok := ret.Get(0).(func(abcitypes.RequestInitChain) *abcitypes.ResponseInitChain); ok {
   137  		r0 = rf(_a0)
   138  	} else {
   139  		if ret.Get(0) != nil {
   140  			r0 = ret.Get(0).(*abcitypes.ResponseInitChain)
   141  		}
   142  	}
   143  
   144  	if rf, ok := ret.Get(1).(func(abcitypes.RequestInitChain) error); ok {
   145  		r1 = rf(_a0)
   146  	} else {
   147  		r1 = ret.Error(1)
   148  	}
   149  
   150  	return r0, r1
   151  }
   152  
   153  // SetGlobalCallback provides a mock function with given fields: _a0
   154  func (_m *AppConnConsensus) SetGlobalCallback(_a0 abcicli.GlobalCallback) {
   155  	_m.Called(_a0)
   156  }
   157  
   158  // NewAppConnConsensus creates a new instance of AppConnConsensus. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   159  // The first argument is typically a *testing.T value.
   160  func NewAppConnConsensus(t interface {
   161  	mock.TestingT
   162  	Cleanup(func())
   163  }) *AppConnConsensus {
   164  	mock := &AppConnConsensus{}
   165  	mock.Mock.Test(t)
   166  
   167  	t.Cleanup(func() { mock.AssertExpectations(t) })
   168  
   169  	return mock
   170  }