github.com/aergoio/aergo@v1.3.1/message/messagemock/helper.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: message/msghelper.go
     3  
     4  // Package messagemock is a generated GoMock package.
     5  package messagemock
     6  
     7  import (
     8  	types "github.com/aergoio/aergo/types"
     9  	gomock "github.com/golang/mock/gomock"
    10  	reflect "reflect"
    11  )
    12  
    13  // Helper is a mock of Helper interface
    14  type Helper struct {
    15  	ctrl     *gomock.Controller
    16  	recorder *HelperMockRecorder
    17  }
    18  
    19  // HelperMockRecorder is the mock recorder for Helper
    20  type HelperMockRecorder struct {
    21  	mock *Helper
    22  }
    23  
    24  // NewHelper creates a new mock instance
    25  func NewHelper(ctrl *gomock.Controller) *Helper {
    26  	mock := &Helper{ctrl: ctrl}
    27  	mock.recorder = &HelperMockRecorder{mock}
    28  	return mock
    29  }
    30  
    31  // EXPECT returns an object that allows the caller to indicate expected use
    32  func (m *Helper) EXPECT() *HelperMockRecorder {
    33  	return m.recorder
    34  }
    35  
    36  // ExtractBlockFromResponseAndError mocks base method
    37  func (m *Helper) ExtractBlockFromResponseAndError(rawResponse interface{}, err error) (*types.Block, error) {
    38  	ret := m.ctrl.Call(m, "ExtractBlockFromResponseAndError", rawResponse, err)
    39  	ret0, _ := ret[0].(*types.Block)
    40  	ret1, _ := ret[1].(error)
    41  	return ret0, ret1
    42  }
    43  
    44  // ExtractBlockFromResponseAndError indicates an expected call of ExtractBlockFromResponseAndError
    45  func (mr *HelperMockRecorder) ExtractBlockFromResponseAndError(rawResponse, err interface{}) *gomock.Call {
    46  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExtractBlockFromResponseAndError", reflect.TypeOf((*Helper)(nil).ExtractBlockFromResponseAndError), rawResponse, err)
    47  }
    48  
    49  // ExtractBlockFromResponse mocks base method
    50  func (m *Helper) ExtractBlockFromResponse(rawResponse interface{}) (*types.Block, error) {
    51  	ret := m.ctrl.Call(m, "ExtractBlockFromResponse", rawResponse)
    52  	ret0, _ := ret[0].(*types.Block)
    53  	ret1, _ := ret[1].(error)
    54  	return ret0, ret1
    55  }
    56  
    57  // ExtractBlockFromResponse indicates an expected call of ExtractBlockFromResponse
    58  func (mr *HelperMockRecorder) ExtractBlockFromResponse(rawResponse interface{}) *gomock.Call {
    59  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExtractBlockFromResponse", reflect.TypeOf((*Helper)(nil).ExtractBlockFromResponse), rawResponse)
    60  }
    61  
    62  // ExtractTxFromResponseAndError mocks base method
    63  func (m *Helper) ExtractTxFromResponseAndError(rawResponse interface{}, err error) (*types.Tx, error) {
    64  	ret := m.ctrl.Call(m, "ExtractTxFromResponseAndError", rawResponse, err)
    65  	ret0, _ := ret[0].(*types.Tx)
    66  	ret1, _ := ret[1].(error)
    67  	return ret0, ret1
    68  }
    69  
    70  // ExtractTxFromResponseAndError indicates an expected call of ExtractTxFromResponseAndError
    71  func (mr *HelperMockRecorder) ExtractTxFromResponseAndError(rawResponse, err interface{}) *gomock.Call {
    72  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExtractTxFromResponseAndError", reflect.TypeOf((*Helper)(nil).ExtractTxFromResponseAndError), rawResponse, err)
    73  }
    74  
    75  // ExtractTxFromResponse mocks base method
    76  func (m *Helper) ExtractTxFromResponse(rawResponse interface{}) (*types.Tx, error) {
    77  	ret := m.ctrl.Call(m, "ExtractTxFromResponse", rawResponse)
    78  	ret0, _ := ret[0].(*types.Tx)
    79  	ret1, _ := ret[1].(error)
    80  	return ret0, ret1
    81  }
    82  
    83  // ExtractTxFromResponse indicates an expected call of ExtractTxFromResponse
    84  func (mr *HelperMockRecorder) ExtractTxFromResponse(rawResponse interface{}) *gomock.Call {
    85  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExtractTxFromResponse", reflect.TypeOf((*Helper)(nil).ExtractTxFromResponse), rawResponse)
    86  }
    87  
    88  // ExtractTxsFromResponseAndError mocks base method
    89  func (m *Helper) ExtractTxsFromResponseAndError(rawResponse interface{}, err error) ([]*types.Tx, error) {
    90  	ret := m.ctrl.Call(m, "ExtractTxsFromResponseAndError", rawResponse, err)
    91  	ret0, _ := ret[0].([]*types.Tx)
    92  	ret1, _ := ret[1].(error)
    93  	return ret0, ret1
    94  }
    95  
    96  // ExtractTxsFromResponseAndError indicates an expected call of ExtractTxsFromResponseAndError
    97  func (mr *HelperMockRecorder) ExtractTxsFromResponseAndError(rawResponse, err interface{}) *gomock.Call {
    98  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExtractTxsFromResponseAndError", reflect.TypeOf((*Helper)(nil).ExtractTxsFromResponseAndError), rawResponse, err)
    99  }
   100  
   101  // ExtractTxsFromResponse mocks base method
   102  func (m *Helper) ExtractTxsFromResponse(rawResponse interface{}) ([]*types.Tx, error) {
   103  	ret := m.ctrl.Call(m, "ExtractTxsFromResponse", rawResponse)
   104  	ret0, _ := ret[0].([]*types.Tx)
   105  	ret1, _ := ret[1].(error)
   106  	return ret0, ret1
   107  }
   108  
   109  // ExtractTxsFromResponse indicates an expected call of ExtractTxsFromResponse
   110  func (mr *HelperMockRecorder) ExtractTxsFromResponse(rawResponse interface{}) *gomock.Call {
   111  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExtractTxsFromResponse", reflect.TypeOf((*Helper)(nil).ExtractTxsFromResponse), rawResponse)
   112  }