/
watcher.go
80 lines (67 loc) · 2.35 KB
/
watcher.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
76
77
78
79
80
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/juju/juju/core/watcher (interfaces: StringsWatcher)
//
// Generated by this command:
//
// mockgen -package mocks -destination mocks/watcher.go github.com/juju/juju/core/watcher StringsWatcher
//
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
watcher "github.com/juju/juju/core/watcher"
gomock "go.uber.org/mock/gomock"
)
// MockStringsWatcher is a mock of StringsWatcher interface.
type MockStringsWatcher struct {
ctrl *gomock.Controller
recorder *MockStringsWatcherMockRecorder
}
// MockStringsWatcherMockRecorder is the mock recorder for MockStringsWatcher.
type MockStringsWatcherMockRecorder struct {
mock *MockStringsWatcher
}
// NewMockStringsWatcher creates a new mock instance.
func NewMockStringsWatcher(ctrl *gomock.Controller) *MockStringsWatcher {
mock := &MockStringsWatcher{ctrl: ctrl}
mock.recorder = &MockStringsWatcherMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockStringsWatcher) EXPECT() *MockStringsWatcherMockRecorder {
return m.recorder
}
// Changes mocks base method.
func (m *MockStringsWatcher) Changes() watcher.StringsChannel {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Changes")
ret0, _ := ret[0].(watcher.StringsChannel)
return ret0
}
// Changes indicates an expected call of Changes.
func (mr *MockStringsWatcherMockRecorder) Changes() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Changes", reflect.TypeOf((*MockStringsWatcher)(nil).Changes))
}
// Kill mocks base method.
func (m *MockStringsWatcher) Kill() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Kill")
}
// Kill indicates an expected call of Kill.
func (mr *MockStringsWatcherMockRecorder) Kill() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Kill", reflect.TypeOf((*MockStringsWatcher)(nil).Kill))
}
// Wait mocks base method.
func (m *MockStringsWatcher) Wait() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Wait")
ret0, _ := ret[0].(error)
return ret0
}
// Wait indicates an expected call of Wait.
func (mr *MockStringsWatcherMockRecorder) Wait() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Wait", reflect.TypeOf((*MockStringsWatcher)(nil).Wait))
}