github.com/CyCoreSystems/ari@v4.8.4+incompatible/client/arimocks/AsteriskVariables.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 // AsteriskVariables is an autogenerated mock type for the AsteriskVariables type 9 type AsteriskVariables struct { 10 mock.Mock 11 } 12 13 // Get provides a mock function with given fields: key 14 func (_m *AsteriskVariables) Get(key *ari.Key) (string, error) { 15 ret := _m.Called(key) 16 17 var r0 string 18 if rf, ok := ret.Get(0).(func(*ari.Key) string); ok { 19 r0 = rf(key) 20 } else { 21 r0 = ret.Get(0).(string) 22 } 23 24 var r1 error 25 if rf, ok := ret.Get(1).(func(*ari.Key) error); ok { 26 r1 = rf(key) 27 } else { 28 r1 = ret.Error(1) 29 } 30 31 return r0, r1 32 } 33 34 // Set provides a mock function with given fields: key, value 35 func (_m *AsteriskVariables) Set(key *ari.Key, value string) error { 36 ret := _m.Called(key, value) 37 38 var r0 error 39 if rf, ok := ret.Get(0).(func(*ari.Key, string) error); ok { 40 r0 = rf(key, value) 41 } else { 42 r0 = ret.Error(0) 43 } 44 45 return r0 46 }