-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmock_tracing_test.go
100 lines (83 loc) · 3.06 KB
/
mock_tracing_test.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/sarchlab/akita/v3/tracing (interfaces: NamedHookable)
package tracing
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
sim "github.com/sarchlab/akita/v3/sim"
)
// MockNamedHookable is a mock of NamedHookable interface.
type MockNamedHookable struct {
ctrl *gomock.Controller
recorder *MockNamedHookableMockRecorder
}
// MockNamedHookableMockRecorder is the mock recorder for MockNamedHookable.
type MockNamedHookableMockRecorder struct {
mock *MockNamedHookable
}
// NewMockNamedHookable creates a new mock instance.
func NewMockNamedHookable(ctrl *gomock.Controller) *MockNamedHookable {
mock := &MockNamedHookable{ctrl: ctrl}
mock.recorder = &MockNamedHookableMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockNamedHookable) EXPECT() *MockNamedHookableMockRecorder {
return m.recorder
}
// AcceptHook mocks base method.
func (m *MockNamedHookable) AcceptHook(arg0 sim.Hook) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "AcceptHook", arg0)
}
// AcceptHook indicates an expected call of AcceptHook.
func (mr *MockNamedHookableMockRecorder) AcceptHook(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcceptHook", reflect.TypeOf((*MockNamedHookable)(nil).AcceptHook), arg0)
}
// Hooks mocks base method.
func (m *MockNamedHookable) Hooks() []sim.Hook {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Hooks")
ret0, _ := ret[0].([]sim.Hook)
return ret0
}
// Hooks indicates an expected call of Hooks.
func (mr *MockNamedHookableMockRecorder) Hooks() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Hooks", reflect.TypeOf((*MockNamedHookable)(nil).Hooks))
}
// InvokeHook mocks base method.
func (m *MockNamedHookable) InvokeHook(arg0 sim.HookCtx) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "InvokeHook", arg0)
}
// InvokeHook indicates an expected call of InvokeHook.
func (mr *MockNamedHookableMockRecorder) InvokeHook(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InvokeHook", reflect.TypeOf((*MockNamedHookable)(nil).InvokeHook), arg0)
}
// Name mocks base method.
func (m *MockNamedHookable) Name() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Name")
ret0, _ := ret[0].(string)
return ret0
}
// Name indicates an expected call of Name.
func (mr *MockNamedHookableMockRecorder) Name() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockNamedHookable)(nil).Name))
}
// NumHooks mocks base method.
func (m *MockNamedHookable) NumHooks() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NumHooks")
ret0, _ := ret[0].(int)
return ret0
}
// NumHooks indicates an expected call of NumHooks.
func (mr *MockNamedHookableMockRecorder) NumHooks() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumHooks", reflect.TypeOf((*MockNamedHookable)(nil).NumHooks))
}