/
mockprocessmon.go
77 lines (64 loc) · 2.9 KB
/
mockprocessmon.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
// Code generated by MockGen. DO NOT EDIT.
// Source: internal/processmon/interfaces.go
// Package mockprocessmon is a generated GoMock package.
package mockprocessmon
import (
reflect "reflect"
rpcwrapper "github.com/aporeto-inc/trireme-lib/enforcer/utils/rpcwrapper"
gomock "github.com/golang/mock/gomock"
)
// MockProcessManager is a mock of ProcessManager interface
// nolint
type MockProcessManager struct {
ctrl *gomock.Controller
recorder *MockProcessManagerMockRecorder
}
// MockProcessManagerMockRecorder is the mock recorder for MockProcessManager
// nolint
type MockProcessManagerMockRecorder struct {
mock *MockProcessManager
}
// NewMockProcessManager creates a new mock instance
// nolint
func NewMockProcessManager(ctrl *gomock.Controller) *MockProcessManager {
mock := &MockProcessManager{ctrl: ctrl}
mock.recorder = &MockProcessManagerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
// nolint
func (m *MockProcessManager) EXPECT() *MockProcessManagerMockRecorder {
return m.recorder
}
// KillProcess mocks base method
// nolint
func (m *MockProcessManager) KillProcess(contextID string) {
m.ctrl.Call(m, "KillProcess", contextID)
}
// KillProcess indicates an expected call of KillProcess
// nolint
func (mr *MockProcessManagerMockRecorder) KillProcess(contextID interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KillProcess", reflect.TypeOf((*MockProcessManager)(nil).KillProcess), contextID)
}
// LaunchProcess mocks base method
// nolint
func (m *MockProcessManager) LaunchProcess(contextID string, refPid int, refNsPath string, rpchdl rpcwrapper.RPCClient, arg, statssecret, procMountPoint string) error {
ret := m.ctrl.Call(m, "LaunchProcess", contextID, refPid, refNsPath, rpchdl, arg, statssecret, procMountPoint)
ret0, _ := ret[0].(error)
return ret0
}
// LaunchProcess indicates an expected call of LaunchProcess
// nolint
func (mr *MockProcessManagerMockRecorder) LaunchProcess(contextID, refPid, refNsPath, rpchdl, arg, statssecret, procMountPoint interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LaunchProcess", reflect.TypeOf((*MockProcessManager)(nil).LaunchProcess), contextID, refPid, refNsPath, rpchdl, arg, statssecret, procMountPoint)
}
// SetLogParameters mocks base method
// nolint
func (m *MockProcessManager) SetLogParameters(logToConsole, logWithID bool, logLevel, logFormat string) {
m.ctrl.Call(m, "SetLogParameters", logToConsole, logWithID, logLevel, logFormat)
}
// SetLogParameters indicates an expected call of SetLogParameters
// nolint
func (mr *MockProcessManagerMockRecorder) SetLogParameters(logToConsole, logWithID, logLevel, logFormat interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLogParameters", reflect.TypeOf((*MockProcessManager)(nil).SetLogParameters), logToConsole, logWithID, logLevel, logFormat)
}