dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts@v1.0.2/clients/interfaces/mocks/GeneralClient.go (about)

     1  // Code generated by mockery v2.15.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	context "context"
     7  
     8  	common "dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts/dtos/common"
     9  
    10  	errors "dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts/errors"
    11  
    12  	mock "github.com/stretchr/testify/mock"
    13  )
    14  
    15  // GeneralClient is an autogenerated mock type for the GeneralClient type
    16  type GeneralClient struct {
    17  	mock.Mock
    18  }
    19  
    20  // FetchConfiguration provides a mock function with given fields: ctx
    21  func (_m *GeneralClient) FetchConfiguration(ctx context.Context) (common.ConfigResponse, errors.EdgeX) {
    22  	ret := _m.Called(ctx)
    23  
    24  	var r0 common.ConfigResponse
    25  	if rf, ok := ret.Get(0).(func(context.Context) common.ConfigResponse); ok {
    26  		r0 = rf(ctx)
    27  	} else {
    28  		r0 = ret.Get(0).(common.ConfigResponse)
    29  	}
    30  
    31  	var r1 errors.EdgeX
    32  	if rf, ok := ret.Get(1).(func(context.Context) errors.EdgeX); ok {
    33  		r1 = rf(ctx)
    34  	} else {
    35  		if ret.Get(1) != nil {
    36  			r1 = ret.Get(1).(errors.EdgeX)
    37  		}
    38  	}
    39  
    40  	return r0, r1
    41  }
    42  
    43  type mockConstructorTestingTNewGeneralClient interface {
    44  	mock.TestingT
    45  	Cleanup(func())
    46  }
    47  
    48  // NewGeneralClient creates a new instance of GeneralClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    49  func NewGeneralClient(t mockConstructorTestingTNewGeneralClient) *GeneralClient {
    50  	mock := &GeneralClient{}
    51  	mock.Mock.Test(t)
    52  
    53  	t.Cleanup(func() { mock.AssertExpectations(t) })
    54  
    55  	return mock
    56  }