-
Notifications
You must be signed in to change notification settings - Fork 9
/
watcher.go
65 lines (54 loc) · 2.08 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
// Code generated by MockGen. DO NOT EDIT.
// Source: watcher.go
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
types "github.com/nordix/meridio/pkg/ipam/types"
)
// MockTrenchWatcher is a mock of TrenchWatcher interface.
type MockTrenchWatcher struct {
ctrl *gomock.Controller
recorder *MockTrenchWatcherMockRecorder
}
// MockTrenchWatcherMockRecorder is the mock recorder for MockTrenchWatcher.
type MockTrenchWatcherMockRecorder struct {
mock *MockTrenchWatcher
}
// NewMockTrenchWatcher creates a new mock instance.
func NewMockTrenchWatcher(ctrl *gomock.Controller) *MockTrenchWatcher {
mock := &MockTrenchWatcher{ctrl: ctrl}
mock.recorder = &MockTrenchWatcherMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockTrenchWatcher) EXPECT() *MockTrenchWatcherMockRecorder {
return m.recorder
}
// AddConduit mocks base method.
func (m *MockTrenchWatcher) AddConduit(ctx context.Context, name string) (types.Conduit, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddConduit", ctx, name)
ret0, _ := ret[0].(types.Conduit)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AddConduit indicates an expected call of AddConduit.
func (mr *MockTrenchWatcherMockRecorder) AddConduit(ctx, name interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddConduit", reflect.TypeOf((*MockTrenchWatcher)(nil).AddConduit), ctx, name)
}
// RemoveConduit mocks base method.
func (m *MockTrenchWatcher) RemoveConduit(ctx context.Context, name string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RemoveConduit", ctx, name)
ret0, _ := ret[0].(error)
return ret0
}
// RemoveConduit indicates an expected call of RemoveConduit.
func (mr *MockTrenchWatcherMockRecorder) RemoveConduit(ctx, name interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveConduit", reflect.TypeOf((*MockTrenchWatcher)(nil).RemoveConduit), ctx, name)
}