runtime_observer_mock.go RawHistoryFolder
1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package portsmocks
6
7import (
8 "github.com/bnema/vev/internal/ports"
9 mock "github.com/stretchr/testify/mock"
10)
11
12// NewMockRuntimeObserver creates a new instance of MockRuntimeObserver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
13// The first argument is typically a *testing.T value.
14func NewMockRuntimeObserver(t interface {
15 mock.TestingT
16 Cleanup(func())
17}) *MockRuntimeObserver {
18 if helper, ok := t.(interface{ Helper() }); ok {
19 helper.Helper()
20 }
21
22 mock := &MockRuntimeObserver{}
23 mock.Mock.Test(t)
24
25 t.Cleanup(func() {
26 if helper, ok := t.(interface{ Helper() }); ok {
27 helper.Helper()
28 }
29 mock.AssertExpectations(t)
30 })
31
32 return mock
33}
34
35// MockRuntimeObserver is an autogenerated mock type for the RuntimeObserver type
36type MockRuntimeObserver struct {
37 mock.Mock
38}
39
40type MockRuntimeObserver_Expecter struct {
41 mock *mock.Mock
42}
43
44func (_m *MockRuntimeObserver) EXPECT() *MockRuntimeObserver_Expecter {
45 return &MockRuntimeObserver_Expecter{mock: &_m.Mock}
46}
47
48// ObserveRuntime provides a mock function for the type MockRuntimeObserver
49func (_mock *MockRuntimeObserver) ObserveRuntime(runtimeMark ports.RuntimeMark) {
50 _mock.Called(runtimeMark)
51 return
52}
53
54// MockRuntimeObserver_ObserveRuntime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObserveRuntime'
55type MockRuntimeObserver_ObserveRuntime_Call struct {
56 *mock.Call
57}
58
59// ObserveRuntime is a helper method to define mock.On call
60// - runtimeMark ports.RuntimeMark
61func (_e *MockRuntimeObserver_Expecter) ObserveRuntime(runtimeMark any) *MockRuntimeObserver_ObserveRuntime_Call {
62 return &MockRuntimeObserver_ObserveRuntime_Call{Call: _e.mock.On("ObserveRuntime", runtimeMark)}
63}
64
65func (_c *MockRuntimeObserver_ObserveRuntime_Call) Run(run func(runtimeMark ports.RuntimeMark)) *MockRuntimeObserver_ObserveRuntime_Call {
66 _c.Call.Run(func(args mock.Arguments) {
67 var arg0 ports.RuntimeMark
68 if args[0] != nil {
69 arg0 = args[0].(ports.RuntimeMark)
70 }
71 run(
72 arg0,
73 )
74 })
75 return _c
76}
77
78func (_c *MockRuntimeObserver_ObserveRuntime_Call) Return() *MockRuntimeObserver_ObserveRuntime_Call {
79 _c.Call.Return()
80 return _c
81}
82
83func (_c *MockRuntimeObserver_ObserveRuntime_Call) RunAndReturn(run func(runtimeMark ports.RuntimeMark)) *MockRuntimeObserver_ObserveRuntime_Call {
84 _c.Run(run)
85 return _c
86}
87
88// NewMockSerializedRuntimeObserver creates a new instance of MockSerializedRuntimeObserver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
89// The first argument is typically a *testing.T value.
90func NewMockSerializedRuntimeObserver(t interface {
91 mock.TestingT
92 Cleanup(func())
93}) *MockSerializedRuntimeObserver {
94 if helper, ok := t.(interface{ Helper() }); ok {
95 helper.Helper()
96 }
97
98 mock := &MockSerializedRuntimeObserver{}
99 mock.Mock.Test(t)
100
101 t.Cleanup(func() {
102 if helper, ok := t.(interface{ Helper() }); ok {
103 helper.Helper()
104 }
105 mock.AssertExpectations(t)
106 })
107
108 return mock
109}
110
111// MockSerializedRuntimeObserver is an autogenerated mock type for the SerializedRuntimeObserver type
112type MockSerializedRuntimeObserver struct {
113 mock.Mock
114}
115
116type MockSerializedRuntimeObserver_Expecter struct {
117 mock *mock.Mock
118}
119
120func (_m *MockSerializedRuntimeObserver) EXPECT() *MockSerializedRuntimeObserver_Expecter {
121 return &MockSerializedRuntimeObserver_Expecter{mock: &_m.Mock}
122}
123
124// Close provides a mock function for the type MockSerializedRuntimeObserver
125func (_mock *MockSerializedRuntimeObserver) Close() {
126 _mock.Called()
127 return
128}
129
130// MockSerializedRuntimeObserver_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
131type MockSerializedRuntimeObserver_Close_Call struct {
132 *mock.Call
133}
134
135// Close is a helper method to define mock.On call
136func (_e *MockSerializedRuntimeObserver_Expecter) Close() *MockSerializedRuntimeObserver_Close_Call {
137 return &MockSerializedRuntimeObserver_Close_Call{Call: _e.mock.On("Close")}
138}
139
140func (_c *MockSerializedRuntimeObserver_Close_Call) Run(run func()) *MockSerializedRuntimeObserver_Close_Call {
141 _c.Call.Run(func(args mock.Arguments) {
142 run()
143 })
144 return _c
145}
146
147func (_c *MockSerializedRuntimeObserver_Close_Call) Return() *MockSerializedRuntimeObserver_Close_Call {
148 _c.Call.Return()
149 return _c
150}
151
152func (_c *MockSerializedRuntimeObserver_Close_Call) RunAndReturn(run func()) *MockSerializedRuntimeObserver_Close_Call {
153 _c.Run(run)
154 return _c
155}
156
157// Flush provides a mock function for the type MockSerializedRuntimeObserver
158func (_mock *MockSerializedRuntimeObserver) Flush() {
159 _mock.Called()
160 return
161}
162
163// MockSerializedRuntimeObserver_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'
164type MockSerializedRuntimeObserver_Flush_Call struct {
165 *mock.Call
166}
167
168// Flush is a helper method to define mock.On call
169func (_e *MockSerializedRuntimeObserver_Expecter) Flush() *MockSerializedRuntimeObserver_Flush_Call {
170 return &MockSerializedRuntimeObserver_Flush_Call{Call: _e.mock.On("Flush")}
171}
172
173func (_c *MockSerializedRuntimeObserver_Flush_Call) Run(run func()) *MockSerializedRuntimeObserver_Flush_Call {
174 _c.Call.Run(func(args mock.Arguments) {
175 run()
176 })
177 return _c
178}
179
180func (_c *MockSerializedRuntimeObserver_Flush_Call) Return() *MockSerializedRuntimeObserver_Flush_Call {
181 _c.Call.Return()
182 return _c
183}
184
185func (_c *MockSerializedRuntimeObserver_Flush_Call) RunAndReturn(run func()) *MockSerializedRuntimeObserver_Flush_Call {
186 _c.Run(run)
187 return _c
188}
189
190// ObserveRuntime provides a mock function for the type MockSerializedRuntimeObserver
191func (_mock *MockSerializedRuntimeObserver) ObserveRuntime(runtimeMark ports.RuntimeMark) {
192 _mock.Called(runtimeMark)
193 return
194}
195
196// MockSerializedRuntimeObserver_ObserveRuntime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObserveRuntime'
197type MockSerializedRuntimeObserver_ObserveRuntime_Call struct {
198 *mock.Call
199}
200
201// ObserveRuntime is a helper method to define mock.On call
202// - runtimeMark ports.RuntimeMark
203func (_e *MockSerializedRuntimeObserver_Expecter) ObserveRuntime(runtimeMark any) *MockSerializedRuntimeObserver_ObserveRuntime_Call {
204 return &MockSerializedRuntimeObserver_ObserveRuntime_Call{Call: _e.mock.On("ObserveRuntime", runtimeMark)}
205}
206
207func (_c *MockSerializedRuntimeObserver_ObserveRuntime_Call) Run(run func(runtimeMark ports.RuntimeMark)) *MockSerializedRuntimeObserver_ObserveRuntime_Call {
208 _c.Call.Run(func(args mock.Arguments) {
209 var arg0 ports.RuntimeMark
210 if args[0] != nil {
211 arg0 = args[0].(ports.RuntimeMark)
212 }
213 run(
214 arg0,
215 )
216 })
217 return _c
218}
219
220func (_c *MockSerializedRuntimeObserver_ObserveRuntime_Call) Return() *MockSerializedRuntimeObserver_ObserveRuntime_Call {
221 _c.Call.Return()
222 return _c
223}
224
225func (_c *MockSerializedRuntimeObserver_ObserveRuntime_Call) RunAndReturn(run func(runtimeMark ports.RuntimeMark)) *MockSerializedRuntimeObserver_ObserveRuntime_Call {
226 _c.Run(run)
227 return _c
228}