github.com/CyCoreSystems/ari@v4.8.4+incompatible/client/arimocks/Bus.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 // Bus is an autogenerated mock type for the Bus type 9 type Bus struct { 10 mock.Mock 11 } 12 13 // Close provides a mock function with given fields: 14 func (_m *Bus) Close() { 15 _m.Called() 16 } 17 18 // Send provides a mock function with given fields: e 19 func (_m *Bus) Send(e ari.Event) { 20 _m.Called(e) 21 } 22 23 // Subscribe provides a mock function with given fields: key, n 24 func (_m *Bus) Subscribe(key *ari.Key, n ...string) ari.Subscription { 25 _va := make([]interface{}, len(n)) 26 for _i := range n { 27 _va[_i] = n[_i] 28 } 29 var _ca []interface{} 30 _ca = append(_ca, key) 31 _ca = append(_ca, _va...) 32 ret := _m.Called(_ca...) 33 34 var r0 ari.Subscription 35 if rf, ok := ret.Get(0).(func(*ari.Key, ...string) ari.Subscription); ok { 36 r0 = rf(key, n...) 37 } else { 38 if ret.Get(0) != nil { 39 r0 = ret.Get(0).(ari.Subscription) 40 } 41 } 42 43 return r0 44 }