-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
generated_mock_isolation.go
117 lines (94 loc) · 3.09 KB
/
generated_mock_isolation.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// Automatically generated by MockGen. DO NOT EDIT!
// Source: isolation.go
package isolation
import (
gomock "github.com/golang/mock/gomock"
go_ps "github.com/mitchellh/go-ps"
mountinfo "github.com/moby/sys/mountinfo"
safepath "kubevirt.io/kubevirt/pkg/safepath"
)
// Mock of IsolationResult interface
type MockIsolationResult struct {
ctrl *gomock.Controller
recorder *_MockIsolationResultRecorder
}
// Recorder for MockIsolationResult (not exported)
type _MockIsolationResultRecorder struct {
mock *MockIsolationResult
}
func NewMockIsolationResult(ctrl *gomock.Controller) *MockIsolationResult {
mock := &MockIsolationResult{ctrl: ctrl}
mock.recorder = &_MockIsolationResultRecorder{mock}
return mock
}
func (_m *MockIsolationResult) EXPECT() *_MockIsolationResultRecorder {
return _m.recorder
}
func (_m *MockIsolationResult) Pid() int {
ret := _m.ctrl.Call(_m, "Pid")
ret0, _ := ret[0].(int)
return ret0
}
func (_mr *_MockIsolationResultRecorder) Pid() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Pid")
}
func (_m *MockIsolationResult) PPid() int {
ret := _m.ctrl.Call(_m, "PPid")
ret0, _ := ret[0].(int)
return ret0
}
func (_mr *_MockIsolationResultRecorder) PPid() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "PPid")
}
func (_m *MockIsolationResult) PIDNamespace() string {
ret := _m.ctrl.Call(_m, "PIDNamespace")
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockIsolationResultRecorder) PIDNamespace() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "PIDNamespace")
}
func (_m *MockIsolationResult) MountRoot() (*safepath.Path, error) {
ret := _m.ctrl.Call(_m, "MountRoot")
ret0, _ := ret[0].(*safepath.Path)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockIsolationResultRecorder) MountRoot() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "MountRoot")
}
func (_m *MockIsolationResult) MountNamespace() string {
ret := _m.ctrl.Call(_m, "MountNamespace")
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockIsolationResultRecorder) MountNamespace() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "MountNamespace")
}
func (_m *MockIsolationResult) Mounts(_param0 mountinfo.FilterFunc) ([]*mountinfo.Info, error) {
ret := _m.ctrl.Call(_m, "Mounts", _param0)
ret0, _ := ret[0].([]*mountinfo.Info)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockIsolationResultRecorder) Mounts(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Mounts", arg0)
}
func (_m *MockIsolationResult) GetQEMUProcess() (go_ps.Process, error) {
ret := _m.ctrl.Call(_m, "GetQEMUProcess")
ret0, _ := ret[0].(go_ps.Process)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockIsolationResultRecorder) GetQEMUProcess() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetQEMUProcess")
}
func (_m *MockIsolationResult) KvmPitPid() (int, error) {
ret := _m.ctrl.Call(_m, "KvmPitPid")
ret0, _ := ret[0].(int)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockIsolationResultRecorder) KvmPitPid() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "KvmPitPid")
}