forked from CyCoreSystems/ari
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Bus.go
46 lines (38 loc) · 977 Bytes
/
Bus.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Code generated by mockery v1.0.0. DO NOT EDIT.
package arimocks
import (
ari "github.com/CyCoreSystems/ari/v5"
mock "github.com/stretchr/testify/mock"
)
// Bus is an autogenerated mock type for the Bus type
type Bus struct {
mock.Mock
}
// Close provides a mock function with given fields:
func (_m *Bus) Close() {
_m.Called()
}
// Send provides a mock function with given fields: e
func (_m *Bus) Send(e ari.Event) {
_m.Called(e)
}
// Subscribe provides a mock function with given fields: key, n
func (_m *Bus) Subscribe(key *ari.Key, n ...string) ari.Subscription {
_va := make([]interface{}, len(n))
for _i := range n {
_va[_i] = n[_i]
}
var _ca []interface{}
_ca = append(_ca, key)
_ca = append(_ca, _va...)
ret := _m.Called(_ca...)
var r0 ari.Subscription
if rf, ok := ret.Get(0).(func(*ari.Key, ...string) ari.Subscription); ok {
r0 = rf(key, n...)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(ari.Subscription)
}
}
return r0
}