github.com/shrimpyuk/bor@v0.2.15-0.20220224151350-fb4ec6020bae/tests/bor/mocks/IHeimdallClient.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	bor "github.com/ethereum/go-ethereum/consensus/bor"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // IHeimdallClient is an autogenerated mock type for the IHeimdallClient type
    11  type IHeimdallClient struct {
    12  	mock.Mock
    13  }
    14  
    15  // Fetch provides a mock function with given fields: path, query
    16  func (_m *IHeimdallClient) Fetch(path string, query string) (*bor.ResponseWithHeight, error) {
    17  	ret := _m.Called(path, query)
    18  
    19  	var r0 *bor.ResponseWithHeight
    20  	if rf, ok := ret.Get(0).(func(string, string) *bor.ResponseWithHeight); ok {
    21  		r0 = rf(path, query)
    22  	} else {
    23  		if ret.Get(0) != nil {
    24  			r0 = ret.Get(0).(*bor.ResponseWithHeight)
    25  		}
    26  	}
    27  
    28  	var r1 error
    29  	if rf, ok := ret.Get(1).(func(string, string) error); ok {
    30  		r1 = rf(path, query)
    31  	} else {
    32  		r1 = ret.Error(1)
    33  	}
    34  
    35  	return r0, r1
    36  }
    37  
    38  // FetchStateSyncEvents provides a mock function with given fields: fromID, to
    39  func (_m *IHeimdallClient) FetchStateSyncEvents(fromID uint64, to int64) ([]*bor.EventRecordWithTime, error) {
    40  	ret := _m.Called(fromID, to)
    41  
    42  	var r0 []*bor.EventRecordWithTime
    43  	if rf, ok := ret.Get(0).(func(uint64, int64) []*bor.EventRecordWithTime); ok {
    44  		r0 = rf(fromID, to)
    45  	} else {
    46  		if ret.Get(0) != nil {
    47  			r0 = ret.Get(0).([]*bor.EventRecordWithTime)
    48  		}
    49  	}
    50  
    51  	var r1 error
    52  	if rf, ok := ret.Get(1).(func(uint64, int64) error); ok {
    53  		r1 = rf(fromID, to)
    54  	} else {
    55  		r1 = ret.Error(1)
    56  	}
    57  
    58  	return r0, r1
    59  }
    60  
    61  // FetchWithRetry provides a mock function with given fields: path, query
    62  func (_m *IHeimdallClient) FetchWithRetry(path string, query string) (*bor.ResponseWithHeight, error) {
    63  	ret := _m.Called(path, query)
    64  
    65  	var r0 *bor.ResponseWithHeight
    66  	if rf, ok := ret.Get(0).(func(string, string) *bor.ResponseWithHeight); ok {
    67  		r0 = rf(path, query)
    68  	} else {
    69  		if ret.Get(0) != nil {
    70  			r0 = ret.Get(0).(*bor.ResponseWithHeight)
    71  		}
    72  	}
    73  
    74  	var r1 error
    75  	if rf, ok := ret.Get(1).(func(string, string) error); ok {
    76  		r1 = rf(path, query)
    77  	} else {
    78  		r1 = ret.Error(1)
    79  	}
    80  
    81  	return r0, r1
    82  }