dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts@v1.0.2/clients/interfaces/mocks/DeviceServiceCommandClient.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  	responses "dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts/dtos/responses"
    15  )
    16  
    17  // DeviceServiceCommandClient is an autogenerated mock type for the DeviceServiceCommandClient type
    18  type DeviceServiceCommandClient struct {
    19  	mock.Mock
    20  }
    21  
    22  // GetCommand provides a mock function with given fields: ctx, baseUrl, deviceName, commandName, queryParams
    23  func (_m *DeviceServiceCommandClient) GetCommand(ctx context.Context, baseUrl string, deviceName string, commandName string, queryParams string) (*responses.EventResponse, errors.EdgeX) {
    24  	ret := _m.Called(ctx, baseUrl, deviceName, commandName, queryParams)
    25  
    26  	var r0 *responses.EventResponse
    27  	if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string) *responses.EventResponse); ok {
    28  		r0 = rf(ctx, baseUrl, deviceName, commandName, queryParams)
    29  	} else {
    30  		if ret.Get(0) != nil {
    31  			r0 = ret.Get(0).(*responses.EventResponse)
    32  		}
    33  	}
    34  
    35  	var r1 errors.EdgeX
    36  	if rf, ok := ret.Get(1).(func(context.Context, string, string, string, string) errors.EdgeX); ok {
    37  		r1 = rf(ctx, baseUrl, deviceName, commandName, queryParams)
    38  	} else {
    39  		if ret.Get(1) != nil {
    40  			r1 = ret.Get(1).(errors.EdgeX)
    41  		}
    42  	}
    43  
    44  	return r0, r1
    45  }
    46  
    47  // SetCommand provides a mock function with given fields: ctx, baseUrl, deviceName, commandName, queryParams, settings
    48  func (_m *DeviceServiceCommandClient) SetCommand(ctx context.Context, baseUrl string, deviceName string, commandName string, queryParams string, settings map[string]string) (common.BaseResponse, errors.EdgeX) {
    49  	ret := _m.Called(ctx, baseUrl, deviceName, commandName, queryParams, settings)
    50  
    51  	var r0 common.BaseResponse
    52  	if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string, map[string]string) common.BaseResponse); ok {
    53  		r0 = rf(ctx, baseUrl, deviceName, commandName, queryParams, settings)
    54  	} else {
    55  		r0 = ret.Get(0).(common.BaseResponse)
    56  	}
    57  
    58  	var r1 errors.EdgeX
    59  	if rf, ok := ret.Get(1).(func(context.Context, string, string, string, string, map[string]string) errors.EdgeX); ok {
    60  		r1 = rf(ctx, baseUrl, deviceName, commandName, queryParams, settings)
    61  	} else {
    62  		if ret.Get(1) != nil {
    63  			r1 = ret.Get(1).(errors.EdgeX)
    64  		}
    65  	}
    66  
    67  	return r0, r1
    68  }
    69  
    70  // SetCommandWithObject provides a mock function with given fields: ctx, baseUrl, deviceName, commandName, queryParams, settings
    71  func (_m *DeviceServiceCommandClient) SetCommandWithObject(ctx context.Context, baseUrl string, deviceName string, commandName string, queryParams string, settings map[string]interface{}) (common.BaseResponse, errors.EdgeX) {
    72  	ret := _m.Called(ctx, baseUrl, deviceName, commandName, queryParams, settings)
    73  
    74  	var r0 common.BaseResponse
    75  	if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string, map[string]interface{}) common.BaseResponse); ok {
    76  		r0 = rf(ctx, baseUrl, deviceName, commandName, queryParams, settings)
    77  	} else {
    78  		r0 = ret.Get(0).(common.BaseResponse)
    79  	}
    80  
    81  	var r1 errors.EdgeX
    82  	if rf, ok := ret.Get(1).(func(context.Context, string, string, string, string, map[string]interface{}) errors.EdgeX); ok {
    83  		r1 = rf(ctx, baseUrl, deviceName, commandName, queryParams, settings)
    84  	} else {
    85  		if ret.Get(1) != nil {
    86  			r1 = ret.Get(1).(errors.EdgeX)
    87  		}
    88  	}
    89  
    90  	return r0, r1
    91  }
    92  
    93  type mockConstructorTestingTNewDeviceServiceCommandClient interface {
    94  	mock.TestingT
    95  	Cleanup(func())
    96  }
    97  
    98  // NewDeviceServiceCommandClient creates a new instance of DeviceServiceCommandClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    99  func NewDeviceServiceCommandClient(t mockConstructorTestingTNewDeviceServiceCommandClient) *DeviceServiceCommandClient {
   100  	mock := &DeviceServiceCommandClient{}
   101  	mock.Mock.Test(t)
   102  
   103  	t.Cleanup(func() { mock.AssertExpectations(t) })
   104  
   105  	return mock
   106  }