github.com/CyCoreSystems/ari@v4.8.4+incompatible/client/arimocks/Config.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package arimocks 4 5 import ari "github.com/CyCoreSystems/ari" 6 import mock "github.com/stretchr/testify/mock" 7 8 // Config is an autogenerated mock type for the Config type 9 type Config struct { 10 mock.Mock 11 } 12 13 // Data provides a mock function with given fields: key 14 func (_m *Config) Data(key *ari.Key) (*ari.ConfigData, error) { 15 ret := _m.Called(key) 16 17 var r0 *ari.ConfigData 18 if rf, ok := ret.Get(0).(func(*ari.Key) *ari.ConfigData); ok { 19 r0 = rf(key) 20 } else { 21 if ret.Get(0) != nil { 22 r0 = ret.Get(0).(*ari.ConfigData) 23 } 24 } 25 26 var r1 error 27 if rf, ok := ret.Get(1).(func(*ari.Key) error); ok { 28 r1 = rf(key) 29 } else { 30 r1 = ret.Error(1) 31 } 32 33 return r0, r1 34 } 35 36 // Delete provides a mock function with given fields: key 37 func (_m *Config) Delete(key *ari.Key) error { 38 ret := _m.Called(key) 39 40 var r0 error 41 if rf, ok := ret.Get(0).(func(*ari.Key) error); ok { 42 r0 = rf(key) 43 } else { 44 r0 = ret.Error(0) 45 } 46 47 return r0 48 } 49 50 // Get provides a mock function with given fields: key 51 func (_m *Config) Get(key *ari.Key) *ari.ConfigHandle { 52 ret := _m.Called(key) 53 54 var r0 *ari.ConfigHandle 55 if rf, ok := ret.Get(0).(func(*ari.Key) *ari.ConfigHandle); ok { 56 r0 = rf(key) 57 } else { 58 if ret.Get(0) != nil { 59 r0 = ret.Get(0).(*ari.ConfigHandle) 60 } 61 } 62 63 return r0 64 } 65 66 // Update provides a mock function with given fields: key, tuples 67 func (_m *Config) Update(key *ari.Key, tuples []ari.ConfigTuple) error { 68 ret := _m.Called(key, tuples) 69 70 var r0 error 71 if rf, ok := ret.Get(0).(func(*ari.Key, []ari.ConfigTuple) error); ok { 72 r0 = rf(key, tuples) 73 } else { 74 r0 = ret.Error(0) 75 } 76 77 return r0 78 }