Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
kardolus
GitHub Repository: kardolus/chatgpt-cli
Path: blob/main/agent/react/runnermocks_test.go
3433 views
1
// Code generated by MockGen. DO NOT EDIT.
2
// Source: github.com/kardolus/chatgpt-cli/agent/core (interfaces: Runner)
3
4
// Package react_test is a generated GoMock package.
5
package react_test
6
7
import (
8
context "context"
9
reflect "reflect"
10
11
gomock "github.com/golang/mock/gomock"
12
types "github.com/kardolus/chatgpt-cli/agent/types"
13
)
14
15
// MockRunner is a mock of Runner interface.
16
type MockRunner struct {
17
ctrl *gomock.Controller
18
recorder *MockRunnerMockRecorder
19
}
20
21
// MockRunnerMockRecorder is the mock recorder for MockRunner.
22
type MockRunnerMockRecorder struct {
23
mock *MockRunner
24
}
25
26
// NewMockRunner creates a new mock instance.
27
func NewMockRunner(ctrl *gomock.Controller) *MockRunner {
28
mock := &MockRunner{ctrl: ctrl}
29
mock.recorder = &MockRunnerMockRecorder{mock}
30
return mock
31
}
32
33
// EXPECT returns an object that allows the caller to indicate expected use.
34
func (m *MockRunner) EXPECT() *MockRunnerMockRecorder {
35
return m.recorder
36
}
37
38
// RunStep mocks base method.
39
func (m *MockRunner) RunStep(arg0 context.Context, arg1 types.Config, arg2 types.Step) (types.StepResult, error) {
40
m.ctrl.T.Helper()
41
ret := m.ctrl.Call(m, "RunStep", arg0, arg1, arg2)
42
ret0, _ := ret[0].(types.StepResult)
43
ret1, _ := ret[1].(error)
44
return ret0, ret1
45
}
46
47
// RunStep indicates an expected call of RunStep.
48
func (mr *MockRunnerMockRecorder) RunStep(arg0, arg1, arg2 interface{}) *gomock.Call {
49
mr.mock.ctrl.T.Helper()
50
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunStep", reflect.TypeOf((*MockRunner)(nil).RunStep), arg0, arg1, arg2)
51
}
52
53