-
Notifications
You must be signed in to change notification settings - Fork 4
/
mock_ns.go
79 lines (66 loc) · 2.48 KB
/
mock_ns.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/baidubce/baiducloud-cce-cni-driver/pkg/wrapper/ns (interfaces: Interface)
// Package testing is a generated GoMock package.
package testing
import (
reflect "reflect"
ns "github.com/containernetworking/plugins/pkg/ns"
gomock "github.com/golang/mock/gomock"
)
// MockInterface is a mock of Interface interface.
type MockInterface struct {
ctrl *gomock.Controller
recorder *MockInterfaceMockRecorder
}
// MockInterfaceMockRecorder is the mock recorder for MockInterface.
type MockInterfaceMockRecorder struct {
mock *MockInterface
}
// NewMockInterface creates a new mock instance.
func NewMockInterface(ctrl *gomock.Controller) *MockInterface {
mock := &MockInterface{ctrl: ctrl}
mock.recorder = &MockInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder {
return m.recorder
}
// GetCurrentNS mocks base method.
func (m *MockInterface) GetCurrentNS() (ns.NetNS, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCurrentNS")
ret0, _ := ret[0].(ns.NetNS)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetCurrentNS indicates an expected call of GetCurrentNS.
func (mr *MockInterfaceMockRecorder) GetCurrentNS() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentNS", reflect.TypeOf((*MockInterface)(nil).GetCurrentNS))
}
// GetNS mocks base method.
func (m *MockInterface) GetNS(arg0 string) (ns.NetNS, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetNS", arg0)
ret0, _ := ret[0].(ns.NetNS)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetNS indicates an expected call of GetNS.
func (mr *MockInterfaceMockRecorder) GetNS(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNS", reflect.TypeOf((*MockInterface)(nil).GetNS), arg0)
}
// WithNetNSPath mocks base method.
func (m *MockInterface) WithNetNSPath(arg0 string, arg1 func(ns.NetNS) error) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WithNetNSPath", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// WithNetNSPath indicates an expected call of WithNetNSPath.
func (mr *MockInterfaceMockRecorder) WithNetNSPath(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithNetNSPath", reflect.TypeOf((*MockInterface)(nil).WithNetNSPath), arg0, arg1)
}