-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmock_topic_test.go
71 lines (57 loc) · 1.45 KB
/
mock_topic_test.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Code generated by mockery v1.0.0. DO NOT EDIT.
package warta
import mock "github.com/stretchr/testify/mock"
import sync "sync"
// mockTopic is an autogenerated mock type for the topic type
type mockTopic struct {
mock.Mock
}
// addListener provides a mock function with given fields: val
func (_m *mockTopic) addListener(val interface{}) (listener, error) {
ret := _m.Called(val)
var r0 listener
if rf, ok := ret.Get(0).(func(interface{}) listener); ok {
r0 = rf(val)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(listener)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(interface{}) error); ok {
r1 = rf(val)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// getListeners provides a mock function with given fields:
func (_m *mockTopic) getListeners() map[string]listener {
ret := _m.Called()
var r0 map[string]listener
if rf, ok := ret.Get(0).(func() map[string]listener); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string]listener)
}
}
return r0
}
// getMutex provides a mock function with given fields:
func (_m *mockTopic) getMutex() *sync.Mutex {
ret := _m.Called()
var r0 *sync.Mutex
if rf, ok := ret.Get(0).(func() *sync.Mutex); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*sync.Mutex)
}
}
return r0
}
// setListeners provides a mock function with given fields: listeners
func (_m *mockTopic) setListeners(listeners map[string]listener) {
_m.Called(listeners)
}