mock_MainLoop.go RawHistoryFolder
1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package mocks
6
7import (
8 mock "github.com/stretchr/testify/mock"
9)
10
11// NewMockMainLoop creates a new instance of MockMainLoop. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
12// The first argument is typically a *testing.T value.
13func NewMockMainLoop(t interface {
14 mock.TestingT
15 Cleanup(func())
16}) *MockMainLoop {
17 mock := &MockMainLoop{}
18 mock.Mock.Test(t)
19
20 t.Cleanup(func() { mock.AssertExpectations(t) })
21
22 return mock
23}
24
25// MockMainLoop is an autogenerated mock type for the MainLoop type
26type MockMainLoop struct {
27 mock.Mock
28}
29
30type MockMainLoop_Expecter struct {
31 mock *mock.Mock
32}
33
34func (_m *MockMainLoop) EXPECT() *MockMainLoop_Expecter {
35 return &MockMainLoop_Expecter{mock: &_m.Mock}
36}
37
38// Destroy provides a mock function for the type MockMainLoop
39func (_mock *MockMainLoop) Destroy() {
40 _mock.Called()
41 return
42}
43
44// MockMainLoop_Destroy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Destroy'
45type MockMainLoop_Destroy_Call struct {
46 *mock.Call
47}
48
49// Destroy is a helper method to define mock.On call
50func (_e *MockMainLoop_Expecter) Destroy() *MockMainLoop_Destroy_Call {
51 return &MockMainLoop_Destroy_Call{Call: _e.mock.On("Destroy")}
52}
53
54func (_c *MockMainLoop_Destroy_Call) Run(run func()) *MockMainLoop_Destroy_Call {
55 _c.Call.Run(func(args mock.Arguments) {
56 run()
57 })
58 return _c
59}
60
61func (_c *MockMainLoop_Destroy_Call) Return() *MockMainLoop_Destroy_Call {
62 _c.Call.Return()
63 return _c
64}
65
66func (_c *MockMainLoop_Destroy_Call) RunAndReturn(run func()) *MockMainLoop_Destroy_Call {
67 _c.Run(run)
68 return _c
69}
70
71// Run provides a mock function for the type MockMainLoop
72func (_mock *MockMainLoop) Run() int32 {
73 ret := _mock.Called()
74
75 if len(ret) == 0 {
76 panic("no return value specified for Run")
77 }
78
79 var r0 int32
80 if returnFunc, ok := ret.Get(0).(func() int32); ok {
81 r0 = returnFunc()
82 } else {
83 r0 = ret.Get(0).(int32)
84 }
85 return r0
86}
87
88// MockMainLoop_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
89type MockMainLoop_Run_Call struct {
90 *mock.Call
91}
92
93// Run is a helper method to define mock.On call
94func (_e *MockMainLoop_Expecter) Run() *MockMainLoop_Run_Call {
95 return &MockMainLoop_Run_Call{Call: _e.mock.On("Run")}
96}
97
98func (_c *MockMainLoop_Run_Call) Run(run func()) *MockMainLoop_Run_Call {
99 _c.Call.Run(func(args mock.Arguments) {
100 run()
101 })
102 return _c
103}
104
105func (_c *MockMainLoop_Run_Call) Return(n int32) *MockMainLoop_Run_Call {
106 _c.Call.Return(n)
107 return _c
108}
109
110func (_c *MockMainLoop_Run_Call) RunAndReturn(run func() int32) *MockMainLoop_Run_Call {
111 _c.Call.Return(run)
112 return _c
113}