// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package portsmocks import ( "github.com/bnema/vev/internal/ports" mock "github.com/stretchr/testify/mock" ) // 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. // The first argument is typically a *testing.T value. func NewMockRuntimeObserver(t interface { mock.TestingT Cleanup(func()) }) *MockRuntimeObserver { mock := &MockRuntimeObserver{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockRuntimeObserver is an autogenerated mock type for the RuntimeObserver type type MockRuntimeObserver struct { mock.Mock } type MockRuntimeObserver_Expecter struct { mock *mock.Mock } func (_m *MockRuntimeObserver) EXPECT() *MockRuntimeObserver_Expecter { return &MockRuntimeObserver_Expecter{mock: &_m.Mock} } // ObserveRuntime provides a mock function for the type MockRuntimeObserver func (_mock *MockRuntimeObserver) ObserveRuntime(runtimeMark ports.RuntimeMark) { _mock.Called(runtimeMark) return } // MockRuntimeObserver_ObserveRuntime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObserveRuntime' type MockRuntimeObserver_ObserveRuntime_Call struct { *mock.Call } // ObserveRuntime is a helper method to define mock.On call // - runtimeMark ports.RuntimeMark func (_e *MockRuntimeObserver_Expecter) ObserveRuntime(runtimeMark any) *MockRuntimeObserver_ObserveRuntime_Call { return &MockRuntimeObserver_ObserveRuntime_Call{Call: _e.mock.On("ObserveRuntime", runtimeMark)} } func (_c *MockRuntimeObserver_ObserveRuntime_Call) Run(run func(runtimeMark ports.RuntimeMark)) *MockRuntimeObserver_ObserveRuntime_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 ports.RuntimeMark if args[0] != nil { arg0 = args[0].(ports.RuntimeMark) } run( arg0, ) }) return _c } func (_c *MockRuntimeObserver_ObserveRuntime_Call) Return() *MockRuntimeObserver_ObserveRuntime_Call { _c.Call.Return() return _c } func (_c *MockRuntimeObserver_ObserveRuntime_Call) RunAndReturn(run func(runtimeMark ports.RuntimeMark)) *MockRuntimeObserver_ObserveRuntime_Call { _c.Run(run) return _c } // 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. // The first argument is typically a *testing.T value. func NewMockSerializedRuntimeObserver(t interface { mock.TestingT Cleanup(func()) }) *MockSerializedRuntimeObserver { mock := &MockSerializedRuntimeObserver{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockSerializedRuntimeObserver is an autogenerated mock type for the SerializedRuntimeObserver type type MockSerializedRuntimeObserver struct { mock.Mock } type MockSerializedRuntimeObserver_Expecter struct { mock *mock.Mock } func (_m *MockSerializedRuntimeObserver) EXPECT() *MockSerializedRuntimeObserver_Expecter { return &MockSerializedRuntimeObserver_Expecter{mock: &_m.Mock} } // Close provides a mock function for the type MockSerializedRuntimeObserver func (_mock *MockSerializedRuntimeObserver) Close() { _mock.Called() return } // MockSerializedRuntimeObserver_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close' type MockSerializedRuntimeObserver_Close_Call struct { *mock.Call } // Close is a helper method to define mock.On call func (_e *MockSerializedRuntimeObserver_Expecter) Close() *MockSerializedRuntimeObserver_Close_Call { return &MockSerializedRuntimeObserver_Close_Call{Call: _e.mock.On("Close")} } func (_c *MockSerializedRuntimeObserver_Close_Call) Run(run func()) *MockSerializedRuntimeObserver_Close_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockSerializedRuntimeObserver_Close_Call) Return() *MockSerializedRuntimeObserver_Close_Call { _c.Call.Return() return _c } func (_c *MockSerializedRuntimeObserver_Close_Call) RunAndReturn(run func()) *MockSerializedRuntimeObserver_Close_Call { _c.Run(run) return _c } // Flush provides a mock function for the type MockSerializedRuntimeObserver func (_mock *MockSerializedRuntimeObserver) Flush() { _mock.Called() return } // MockSerializedRuntimeObserver_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush' type MockSerializedRuntimeObserver_Flush_Call struct { *mock.Call } // Flush is a helper method to define mock.On call func (_e *MockSerializedRuntimeObserver_Expecter) Flush() *MockSerializedRuntimeObserver_Flush_Call { return &MockSerializedRuntimeObserver_Flush_Call{Call: _e.mock.On("Flush")} } func (_c *MockSerializedRuntimeObserver_Flush_Call) Run(run func()) *MockSerializedRuntimeObserver_Flush_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockSerializedRuntimeObserver_Flush_Call) Return() *MockSerializedRuntimeObserver_Flush_Call { _c.Call.Return() return _c } func (_c *MockSerializedRuntimeObserver_Flush_Call) RunAndReturn(run func()) *MockSerializedRuntimeObserver_Flush_Call { _c.Run(run) return _c } // ObserveRuntime provides a mock function for the type MockSerializedRuntimeObserver func (_mock *MockSerializedRuntimeObserver) ObserveRuntime(runtimeMark ports.RuntimeMark) { _mock.Called(runtimeMark) return } // MockSerializedRuntimeObserver_ObserveRuntime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObserveRuntime' type MockSerializedRuntimeObserver_ObserveRuntime_Call struct { *mock.Call } // ObserveRuntime is a helper method to define mock.On call // - runtimeMark ports.RuntimeMark func (_e *MockSerializedRuntimeObserver_Expecter) ObserveRuntime(runtimeMark any) *MockSerializedRuntimeObserver_ObserveRuntime_Call { return &MockSerializedRuntimeObserver_ObserveRuntime_Call{Call: _e.mock.On("ObserveRuntime", runtimeMark)} } func (_c *MockSerializedRuntimeObserver_ObserveRuntime_Call) Run(run func(runtimeMark ports.RuntimeMark)) *MockSerializedRuntimeObserver_ObserveRuntime_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 ports.RuntimeMark if args[0] != nil { arg0 = args[0].(ports.RuntimeMark) } run( arg0, ) }) return _c } func (_c *MockSerializedRuntimeObserver_ObserveRuntime_Call) Return() *MockSerializedRuntimeObserver_ObserveRuntime_Call { _c.Call.Return() return _c } func (_c *MockSerializedRuntimeObserver_ObserveRuntime_Call) RunAndReturn(run func(runtimeMark ports.RuntimeMark)) *MockSerializedRuntimeObserver_ObserveRuntime_Call { _c.Run(run) return _c }