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 mock := &MockRuntimeObserver{}
19 mock.Mock.Test(t)
20
21 t.Cleanup(func() { mock.AssertExpectations(t) })
22
23 return mock
24}
25
26// MockRuntimeObserver is an autogenerated mock type for the RuntimeObserver type
27type MockRuntimeObserver struct {
28 mock.Mock
29}
30
31type MockRuntimeObserver_Expecter struct {
32 mock *mock.Mock
33}
34
35func (_m *MockRuntimeObserver) EXPECT() *MockRuntimeObserver_Expecter {
36 return &MockRuntimeObserver_Expecter{mock: &_m.Mock}
37}
38
39// ObserveRuntime provides a mock function for the type MockRuntimeObserver
40func (_mock *MockRuntimeObserver) ObserveRuntime(runtimeMark ports.RuntimeMark) {
41 _mock.Called(runtimeMark)
42 return
43}
44
45// MockRuntimeObserver_ObserveRuntime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObserveRuntime'
46type MockRuntimeObserver_ObserveRuntime_Call struct {
47 *mock.Call
48}
49
50// ObserveRuntime is a helper method to define mock.On call
51// - runtimeMark ports.RuntimeMark
52func (_e *MockRuntimeObserver_Expecter) ObserveRuntime(runtimeMark any) *MockRuntimeObserver_ObserveRuntime_Call {
53 return &MockRuntimeObserver_ObserveRuntime_Call{Call: _e.mock.On("ObserveRuntime", runtimeMark)}
54}
55
56func (_c *MockRuntimeObserver_ObserveRuntime_Call) Run(run func(runtimeMark ports.RuntimeMark)) *MockRuntimeObserver_ObserveRuntime_Call {
57 _c.Call.Run(func(args mock.Arguments) {
58 var arg0 ports.RuntimeMark
59 if args[0] != nil {
60 arg0 = args[0].(ports.RuntimeMark)
61 }
62 run(
63 arg0,
64 )
65 })
66 return _c
67}
68
69func (_c *MockRuntimeObserver_ObserveRuntime_Call) Return() *MockRuntimeObserver_ObserveRuntime_Call {
70 _c.Call.Return()
71 return _c
72}
73
74func (_c *MockRuntimeObserver_ObserveRuntime_Call) RunAndReturn(run func(runtimeMark ports.RuntimeMark)) *MockRuntimeObserver_ObserveRuntime_Call {
75 _c.Run(run)
76 return _c
77}
78
79// 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.
80// The first argument is typically a *testing.T value.
81func NewMockSerializedRuntimeObserver(t interface {
82 mock.TestingT
83 Cleanup(func())
84}) *MockSerializedRuntimeObserver {
85 mock := &MockSerializedRuntimeObserver{}
86 mock.Mock.Test(t)
87
88 t.Cleanup(func() { mock.AssertExpectations(t) })
89
90 return mock
91}
92
93// MockSerializedRuntimeObserver is an autogenerated mock type for the SerializedRuntimeObserver type
94type MockSerializedRuntimeObserver struct {
95 mock.Mock
96}
97
98type MockSerializedRuntimeObserver_Expecter struct {
99 mock *mock.Mock
100}
101
102func (_m *MockSerializedRuntimeObserver) EXPECT() *MockSerializedRuntimeObserver_Expecter {
103 return &MockSerializedRuntimeObserver_Expecter{mock: &_m.Mock}
104}
105
106// Close provides a mock function for the type MockSerializedRuntimeObserver
107func (_mock *MockSerializedRuntimeObserver) Close() {
108 _mock.Called()
109 return
110}
111
112// MockSerializedRuntimeObserver_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
113type MockSerializedRuntimeObserver_Close_Call struct {
114 *mock.Call
115}
116
117// Close is a helper method to define mock.On call
118func (_e *MockSerializedRuntimeObserver_Expecter) Close() *MockSerializedRuntimeObserver_Close_Call {
119 return &MockSerializedRuntimeObserver_Close_Call{Call: _e.mock.On("Close")}
120}
121
122func (_c *MockSerializedRuntimeObserver_Close_Call) Run(run func()) *MockSerializedRuntimeObserver_Close_Call {
123 _c.Call.Run(func(args mock.Arguments) {
124 run()
125 })
126 return _c
127}
128
129func (_c *MockSerializedRuntimeObserver_Close_Call) Return() *MockSerializedRuntimeObserver_Close_Call {
130 _c.Call.Return()
131 return _c
132}
133
134func (_c *MockSerializedRuntimeObserver_Close_Call) RunAndReturn(run func()) *MockSerializedRuntimeObserver_Close_Call {
135 _c.Run(run)
136 return _c
137}
138
139// Flush provides a mock function for the type MockSerializedRuntimeObserver
140func (_mock *MockSerializedRuntimeObserver) Flush() {
141 _mock.Called()
142 return
143}
144
145// MockSerializedRuntimeObserver_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'
146type MockSerializedRuntimeObserver_Flush_Call struct {
147 *mock.Call
148}
149
150// Flush is a helper method to define mock.On call
151func (_e *MockSerializedRuntimeObserver_Expecter) Flush() *MockSerializedRuntimeObserver_Flush_Call {
152 return &MockSerializedRuntimeObserver_Flush_Call{Call: _e.mock.On("Flush")}
153}
154
155func (_c *MockSerializedRuntimeObserver_Flush_Call) Run(run func()) *MockSerializedRuntimeObserver_Flush_Call {
156 _c.Call.Run(func(args mock.Arguments) {
157 run()
158 })
159 return _c
160}
161
162func (_c *MockSerializedRuntimeObserver_Flush_Call) Return() *MockSerializedRuntimeObserver_Flush_Call {
163 _c.Call.Return()
164 return _c
165}
166
167func (_c *MockSerializedRuntimeObserver_Flush_Call) RunAndReturn(run func()) *MockSerializedRuntimeObserver_Flush_Call {
168 _c.Run(run)
169 return _c
170}
171
172// ObserveRuntime provides a mock function for the type MockSerializedRuntimeObserver
173func (_mock *MockSerializedRuntimeObserver) ObserveRuntime(runtimeMark ports.RuntimeMark) {
174 _mock.Called(runtimeMark)
175 return
176}
177
178// MockSerializedRuntimeObserver_ObserveRuntime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObserveRuntime'
179type MockSerializedRuntimeObserver_ObserveRuntime_Call struct {
180 *mock.Call
181}
182
183// ObserveRuntime is a helper method to define mock.On call
184// - runtimeMark ports.RuntimeMark
185func (_e *MockSerializedRuntimeObserver_Expecter) ObserveRuntime(runtimeMark any) *MockSerializedRuntimeObserver_ObserveRuntime_Call {
186 return &MockSerializedRuntimeObserver_ObserveRuntime_Call{Call: _e.mock.On("ObserveRuntime", runtimeMark)}
187}
188
189func (_c *MockSerializedRuntimeObserver_ObserveRuntime_Call) Run(run func(runtimeMark ports.RuntimeMark)) *MockSerializedRuntimeObserver_ObserveRuntime_Call {
190 _c.Call.Run(func(args mock.Arguments) {
191 var arg0 ports.RuntimeMark
192 if args[0] != nil {
193 arg0 = args[0].(ports.RuntimeMark)
194 }
195 run(
196 arg0,
197 )
198 })
199 return _c
200}
201
202func (_c *MockSerializedRuntimeObserver_ObserveRuntime_Call) Return() *MockSerializedRuntimeObserver_ObserveRuntime_Call {
203 _c.Call.Return()
204 return _c
205}
206
207func (_c *MockSerializedRuntimeObserver_ObserveRuntime_Call) RunAndReturn(run func(runtimeMark ports.RuntimeMark)) *MockSerializedRuntimeObserver_ObserveRuntime_Call {
208 _c.Run(run)
209 return _c
210}