dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts@v1.0.2/clients/logger/mocks/LoggingClient.go (about) 1 // Code generated by mockery v2.15.0. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 errors "dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts/errors" 7 8 mock "github.com/stretchr/testify/mock" 9 ) 10 11 // LoggingClient is an autogenerated mock type for the LoggingClient type 12 type LoggingClient struct { 13 mock.Mock 14 } 15 16 // Debug provides a mock function with given fields: msg, args 17 func (_m *LoggingClient) Debug(msg string, args ...interface{}) { 18 var _ca []interface{} 19 _ca = append(_ca, msg) 20 _ca = append(_ca, args...) 21 _m.Called(_ca...) 22 } 23 24 // Debugf provides a mock function with given fields: msg, args 25 func (_m *LoggingClient) Debugf(msg string, args ...interface{}) { 26 var _ca []interface{} 27 _ca = append(_ca, msg) 28 _ca = append(_ca, args...) 29 _m.Called(_ca...) 30 } 31 32 // Error provides a mock function with given fields: msg, args 33 func (_m *LoggingClient) Error(msg string, args ...interface{}) { 34 var _ca []interface{} 35 _ca = append(_ca, msg) 36 _ca = append(_ca, args...) 37 _m.Called(_ca...) 38 } 39 40 // Errorf provides a mock function with given fields: msg, args 41 func (_m *LoggingClient) Errorf(msg string, args ...interface{}) { 42 var _ca []interface{} 43 _ca = append(_ca, msg) 44 _ca = append(_ca, args...) 45 _m.Called(_ca...) 46 } 47 48 // Info provides a mock function with given fields: msg, args 49 func (_m *LoggingClient) Info(msg string, args ...interface{}) { 50 var _ca []interface{} 51 _ca = append(_ca, msg) 52 _ca = append(_ca, args...) 53 _m.Called(_ca...) 54 } 55 56 // Infof provides a mock function with given fields: msg, args 57 func (_m *LoggingClient) Infof(msg string, args ...interface{}) { 58 var _ca []interface{} 59 _ca = append(_ca, msg) 60 _ca = append(_ca, args...) 61 _m.Called(_ca...) 62 } 63 64 // LogLevel provides a mock function with given fields: 65 func (_m *LoggingClient) LogLevel() string { 66 ret := _m.Called() 67 68 var r0 string 69 if rf, ok := ret.Get(0).(func() string); ok { 70 r0 = rf() 71 } else { 72 r0 = ret.Get(0).(string) 73 } 74 75 return r0 76 } 77 78 // SetLogLevel provides a mock function with given fields: logLevel 79 func (_m *LoggingClient) SetLogLevel(logLevel string) errors.EdgeX { 80 ret := _m.Called(logLevel) 81 82 var r0 errors.EdgeX 83 if rf, ok := ret.Get(0).(func(string) errors.EdgeX); ok { 84 r0 = rf(logLevel) 85 } else { 86 if ret.Get(0) != nil { 87 r0 = ret.Get(0).(errors.EdgeX) 88 } 89 } 90 91 return r0 92 } 93 94 // Trace provides a mock function with given fields: msg, args 95 func (_m *LoggingClient) Trace(msg string, args ...interface{}) { 96 var _ca []interface{} 97 _ca = append(_ca, msg) 98 _ca = append(_ca, args...) 99 _m.Called(_ca...) 100 } 101 102 // Tracef provides a mock function with given fields: msg, args 103 func (_m *LoggingClient) Tracef(msg string, args ...interface{}) { 104 var _ca []interface{} 105 _ca = append(_ca, msg) 106 _ca = append(_ca, args...) 107 _m.Called(_ca...) 108 } 109 110 // Warn provides a mock function with given fields: msg, args 111 func (_m *LoggingClient) Warn(msg string, args ...interface{}) { 112 var _ca []interface{} 113 _ca = append(_ca, msg) 114 _ca = append(_ca, args...) 115 _m.Called(_ca...) 116 } 117 118 // Warnf provides a mock function with given fields: msg, args 119 func (_m *LoggingClient) Warnf(msg string, args ...interface{}) { 120 var _ca []interface{} 121 _ca = append(_ca, msg) 122 _ca = append(_ca, args...) 123 _m.Called(_ca...) 124 } 125 126 type mockConstructorTestingTNewLoggingClient interface { 127 mock.TestingT 128 Cleanup(func()) 129 } 130 131 // NewLoggingClient creates a new instance of LoggingClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 132 func NewLoggingClient(t mockConstructorTestingTNewLoggingClient) *LoggingClient { 133 mock := &LoggingClient{} 134 mock.Mock.Test(t) 135 136 t.Cleanup(func() { mock.AssertExpectations(t) }) 137 138 return mock 139 }