Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
kardolus
GitHub Repository: kardolus/chatgpt-cli
Path: blob/main/agent/react/llmmocks_test.go
3434 views
1
// Code generated by MockGen. DO NOT EDIT.
2
// Source: github.com/kardolus/chatgpt-cli/agent/tools (interfaces: LLM)
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
)
13
14
// MockLLM is a mock of LLM interface.
15
type MockLLM struct {
16
ctrl *gomock.Controller
17
recorder *MockLLMMockRecorder
18
}
19
20
// MockLLMMockRecorder is the mock recorder for MockLLM.
21
type MockLLMMockRecorder struct {
22
mock *MockLLM
23
}
24
25
// NewMockLLM creates a new mock instance.
26
func NewMockLLM(ctrl *gomock.Controller) *MockLLM {
27
mock := &MockLLM{ctrl: ctrl}
28
mock.recorder = &MockLLMMockRecorder{mock}
29
return mock
30
}
31
32
// EXPECT returns an object that allows the caller to indicate expected use.
33
func (m *MockLLM) EXPECT() *MockLLMMockRecorder {
34
return m.recorder
35
}
36
37
// Complete mocks base method.
38
func (m *MockLLM) Complete(arg0 context.Context, arg1 string) (string, int, error) {
39
m.ctrl.T.Helper()
40
ret := m.ctrl.Call(m, "Complete", arg0, arg1)
41
ret0, _ := ret[0].(string)
42
ret1, _ := ret[1].(int)
43
ret2, _ := ret[2].(error)
44
return ret0, ret1, ret2
45
}
46
47
// Complete indicates an expected call of Complete.
48
func (mr *MockLLMMockRecorder) Complete(arg0, arg1 interface{}) *gomock.Call {
49
mr.mock.ctrl.T.Helper()
50
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Complete", reflect.TypeOf((*MockLLM)(nil).Complete), arg0, arg1)
51
}
52
53