-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmock_prophet_rpc.go
88 lines (74 loc) · 2.68 KB
/
mock_prophet_rpc.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
// Code generated by MockGen. DO NOT EDIT.
// Source: ./prophet_rpc.go
// Package prophet is a generated GoMock package.
package prophet
import (
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockRPC is a mock of RPC interface
type MockRPC struct {
ctrl *gomock.Controller
recorder *MockRPCMockRecorder
}
// MockRPCMockRecorder is the mock recorder for MockRPC
type MockRPCMockRecorder struct {
mock *MockRPC
}
// NewMockRPC creates a new mock instance
func NewMockRPC(ctrl *gomock.Controller) *MockRPC {
mock := &MockRPC{ctrl: ctrl}
mock.recorder = &MockRPCMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockRPC) EXPECT() *MockRPCMockRecorder {
return m.recorder
}
// TiggerContainerHeartbeat mocks base method
func (m *MockRPC) TiggerContainerHeartbeat() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "TiggerContainerHeartbeat")
}
// TiggerContainerHeartbeat indicates an expected call of TiggerContainerHeartbeat
func (mr *MockRPCMockRecorder) TiggerContainerHeartbeat() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TiggerContainerHeartbeat", reflect.TypeOf((*MockRPC)(nil).TiggerContainerHeartbeat))
}
// TiggerResourceHeartbeat mocks base method
func (m *MockRPC) TiggerResourceHeartbeat(id uint64) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "TiggerResourceHeartbeat", id)
}
// TiggerResourceHeartbeat indicates an expected call of TiggerResourceHeartbeat
func (mr *MockRPCMockRecorder) TiggerResourceHeartbeat(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TiggerResourceHeartbeat", reflect.TypeOf((*MockRPC)(nil).TiggerResourceHeartbeat), id)
}
// AllocID mocks base method
func (m *MockRPC) AllocID() (uint64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AllocID")
ret0, _ := ret[0].(uint64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AllocID indicates an expected call of AllocID
func (mr *MockRPCMockRecorder) AllocID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllocID", reflect.TypeOf((*MockRPC)(nil).AllocID))
}
// AskSplit mocks base method
func (m *MockRPC) AskSplit(res Resource) (uint64, []uint64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AskSplit", res)
ret0, _ := ret[0].(uint64)
ret1, _ := ret[1].([]uint64)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// AskSplit indicates an expected call of AskSplit
func (mr *MockRPCMockRecorder) AskSplit(res interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskSplit", reflect.TypeOf((*MockRPC)(nil).AskSplit), res)
}