1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package hints
6
7import (
8 "context"
9
10 mock "github.com/stretchr/testify/mock"
11)
12
13// newMocklanguageRunner creates a new instance of mocklanguageRunner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
14// The first argument is typically a *testing.T value.
15func newMocklanguageRunner(t interface {
16 mock.TestingT
17 Cleanup(func())
18}) *mocklanguageRunner {
19 if helper, ok := t.(interface{ Helper() }); ok {
20 helper.Helper()
21 }
22
23 mock := &mocklanguageRunner{}
24 mock.Mock.Test(t)
25
26 t.Cleanup(func() {
27 if helper, ok := t.(interface{ Helper() }); ok {
28 helper.Helper()
29 }
30 mock.AssertExpectations(t)
31 })
32
33 return mock
34}
35
36// mocklanguageRunner is an autogenerated mock type for the languageRunner type
37type mocklanguageRunner struct {
38 mock.Mock
39}
40
41type mocklanguageRunner_Expecter struct {
42 mock *mock.Mock
43}
44
45func (_m *mocklanguageRunner) EXPECT() *mocklanguageRunner_Expecter {
46 return &mocklanguageRunner_Expecter{mock: &_m.Mock}
47}
48
49// Output provides a mock function for the type mocklanguageRunner
50func (_mock *mocklanguageRunner) Output(context1 context.Context, s string, strings ...string) ([]byte, error) {
51 var tmpRet mock.Arguments
52 if len(strings) > 0 {
53 tmpRet = _mock.Called(context1, s, strings)
54 } else {
55 tmpRet = _mock.Called(context1, s)
56 }
57 ret := tmpRet
58
59 if len(ret) == 0 {
60 panic("no return value specified for Output")
61 }
62
63 var r0 []byte
64 var r1 error
65 if returnFunc, ok := ret.Get(0).(func(context.Context, string, ...string) ([]byte, error)); ok {
66 return returnFunc(context1, s, strings...)
67 }
68 if returnFunc, ok := ret.Get(0).(func(context.Context, string, ...string) []byte); ok {
69 r0 = returnFunc(context1, s, strings...)
70 } else {
71 if ret.Get(0) != nil {
72 r0 = ret.Get(0).([]byte)
73 }
74 }
75 if returnFunc, ok := ret.Get(1).(func(context.Context, string, ...string) error); ok {
76 r1 = returnFunc(context1, s, strings...)
77 } else {
78 r1 = ret.Error(1)
79 }
80 return r0, r1
81}
82
83// mocklanguageRunner_Output_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Output'
84type mocklanguageRunner_Output_Call struct {
85 *mock.Call
86}
87
88// Output is a helper method to define mock.On call
89// - context1 context.Context
90// - s string
91// - strings ...string
92func (_e *mocklanguageRunner_Expecter) Output(context1 any, s any, strings ...any) *mocklanguageRunner_Output_Call {
93 return &mocklanguageRunner_Output_Call{Call: _e.mock.On("Output",
94 append([]any{context1, s}, strings...)...)}
95}
96
97func (_c *mocklanguageRunner_Output_Call) Run(run func(context1 context.Context, s string, strings ...string)) *mocklanguageRunner_Output_Call {
98 _c.Call.Run(func(args mock.Arguments) {
99 var arg0 context.Context
100 if args[0] != nil {
101 arg0 = args[0].(context.Context)
102 }
103 var arg1 string
104 if args[1] != nil {
105 arg1 = args[1].(string)
106 }
107 var arg2 []string
108 var variadicArgs []string
109 if len(args) > 2 {
110 variadicArgs = args[2].([]string)
111 }
112 arg2 = variadicArgs
113 run(
114 arg0,
115 arg1,
116 arg2...,
117 )
118 })
119 return _c
120}
121
122func (_c *mocklanguageRunner_Output_Call) Return(bytes []byte, err error) *mocklanguageRunner_Output_Call {
123 _c.Call.Return(bytes, err)
124 return _c
125}
126
127func (_c *mocklanguageRunner_Output_Call) RunAndReturn(run func(context1 context.Context, s string, strings ...string) ([]byte, error)) *mocklanguageRunner_Output_Call {
128 _c.Call.Return(run)
129 return _c
130}