action_runner_mock_test.go RawHistoryFolder
1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package daemon
6
7import (
8 mock "github.com/stretchr/testify/mock"
9)
10
11// newMockdaemonActionRunner creates a new instance of mockdaemonActionRunner. 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 newMockdaemonActionRunner(t interface {
14 mock.TestingT
15 Cleanup(func())
16}) *mockdaemonActionRunner {
17 if helper, ok := t.(interface{ Helper() }); ok {
18 helper.Helper()
19 }
20
21 mock := &mockdaemonActionRunner{}
22 mock.Mock.Test(t)
23
24 t.Cleanup(func() {
25 if helper, ok := t.(interface{ Helper() }); ok {
26 helper.Helper()
27 }
28 mock.AssertExpectations(t)
29 })
30
31 return mock
32}
33
34// mockdaemonActionRunner is an autogenerated mock type for the daemonActionRunner type
35type mockdaemonActionRunner struct {
36 mock.Mock
37}
38
39type mockdaemonActionRunner_Expecter struct {
40 mock *mock.Mock
41}
42
43func (_m *mockdaemonActionRunner) EXPECT() *mockdaemonActionRunner_Expecter {
44 return &mockdaemonActionRunner_Expecter{mock: &_m.Mock}
45}
46
47// Run provides a mock function for the type mockdaemonActionRunner
48func (_mock *mockdaemonActionRunner) Run(daemonActionRequestMoqParam daemonActionRequest) error {
49 ret := _mock.Called(daemonActionRequestMoqParam)
50
51 if len(ret) == 0 {
52 panic("no return value specified for Run")
53 }
54
55 var r0 error
56 if returnFunc, ok := ret.Get(0).(func(daemonActionRequest) error); ok {
57 r0 = returnFunc(daemonActionRequestMoqParam)
58 } else {
59 r0 = ret.Error(0)
60 }
61 return r0
62}
63
64// mockdaemonActionRunner_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
65type mockdaemonActionRunner_Run_Call struct {
66 *mock.Call
67}
68
69// Run is a helper method to define mock.On call
70// - daemonActionRequestMoqParam daemonActionRequest
71func (_e *mockdaemonActionRunner_Expecter) Run(daemonActionRequestMoqParam any) *mockdaemonActionRunner_Run_Call {
72 return &mockdaemonActionRunner_Run_Call{Call: _e.mock.On("Run", daemonActionRequestMoqParam)}
73}
74
75func (_c *mockdaemonActionRunner_Run_Call) Run(run func(daemonActionRequestMoqParam daemonActionRequest)) *mockdaemonActionRunner_Run_Call {
76 _c.Call.Run(func(args mock.Arguments) {
77 var arg0 daemonActionRequest
78 if args[0] != nil {
79 arg0 = args[0].(daemonActionRequest)
80 }
81 run(
82 arg0,
83 )
84 })
85 return _c
86}
87
88func (_c *mockdaemonActionRunner_Run_Call) Return(err error) *mockdaemonActionRunner_Run_Call {
89 _c.Call.Return(err)
90 return _c
91}
92
93func (_c *mockdaemonActionRunner_Run_Call) RunAndReturn(run func(daemonActionRequestMoqParam daemonActionRequest) error) *mockdaemonActionRunner_Run_Call {
94 _c.Call.Return(run)
95 return _c
96}