-
Notifications
You must be signed in to change notification settings - Fork 16
/
event_stream.go
75 lines (62 loc) · 2.36 KB
/
event_stream.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
72
73
74
75
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/NibiruChain/pricefeeder/types (interfaces: EventStream)
// Package mock_types is a generated GoMock package.
package mock_types
import (
reflect "reflect"
types "github.com/NibiruChain/pricefeeder/types"
gomock "github.com/golang/mock/gomock"
)
// MockEventStream is a mock of EventStream interface.
type MockEventStream struct {
ctrl *gomock.Controller
recorder *MockEventStreamMockRecorder
}
// MockEventStreamMockRecorder is the mock recorder for MockEventStream.
type MockEventStreamMockRecorder struct {
mock *MockEventStream
}
// NewMockEventStream creates a new mock instance.
func NewMockEventStream(ctrl *gomock.Controller) *MockEventStream {
mock := &MockEventStream{ctrl: ctrl}
mock.recorder = &MockEventStreamMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockEventStream) EXPECT() *MockEventStreamMockRecorder {
return m.recorder
}
// Close mocks base method.
func (m *MockEventStream) Close() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Close")
}
// Close indicates an expected call of Close.
func (mr *MockEventStreamMockRecorder) Close() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockEventStream)(nil).Close))
}
// ParamsUpdate mocks base method.
func (m *MockEventStream) ParamsUpdate() <-chan types.Params {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ParamsUpdate")
ret0, _ := ret[0].(<-chan types.Params)
return ret0
}
// ParamsUpdate indicates an expected call of ParamsUpdate.
func (mr *MockEventStreamMockRecorder) ParamsUpdate() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ParamsUpdate", reflect.TypeOf((*MockEventStream)(nil).ParamsUpdate))
}
// VotingPeriodStarted mocks base method.
func (m *MockEventStream) VotingPeriodStarted() <-chan types.VotingPeriod {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VotingPeriodStarted")
ret0, _ := ret[0].(<-chan types.VotingPeriod)
return ret0
}
// VotingPeriodStarted indicates an expected call of VotingPeriodStarted.
func (mr *MockEventStreamMockRecorder) VotingPeriodStarted() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VotingPeriodStarted", reflect.TypeOf((*MockEventStream)(nil).VotingPeriodStarted))
}