github.com/0chain/gosdk@v1.17.11/zboxcore/mocks/FastClient.go (about)

     1  // Code generated by mockery v2.28.1. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	fasthttp "github.com/hitenjain14/fasthttp"
     7  	mock "github.com/stretchr/testify/mock"
     8  
     9  	time "time"
    10  )
    11  
    12  // FastClient is an autogenerated mock type for the FastClient type
    13  type FastClient struct {
    14  	mock.Mock
    15  }
    16  
    17  // DoTimeout provides a mock function with given fields: req, resp, timeout
    18  func (_m *FastClient) DoTimeout(req *fasthttp.Request, resp *fasthttp.Response, timeout time.Duration) error {
    19  	ret := _m.Called(req, resp, timeout)
    20  
    21  	var r0 error
    22  	if rf, ok := ret.Get(0).(func(*fasthttp.Request, *fasthttp.Response, time.Duration) error); ok {
    23  		r0 = rf(req, resp, timeout)
    24  	} else {
    25  		r0 = ret.Error(0)
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  type mockConstructorTestingTNewFastClient interface {
    32  	mock.TestingT
    33  	Cleanup(func())
    34  }
    35  
    36  // NewFastClient creates a new instance of FastClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    37  func NewFastClient(t mockConstructorTestingTNewFastClient) *FastClient {
    38  	mock := &FastClient{}
    39  	mock.Mock.Test(t)
    40  
    41  	t.Cleanup(func() { mock.AssertExpectations(t) })
    42  
    43  	return mock
    44  }