Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
kardolus
GitHub Repository: kardolus/chatgpt-cli
Path: blob/main/agent/core/filemocks_test.go
3433 views
1
// Code generated by MockGen. DO NOT EDIT.
2
// Source: github.com/kardolus/chatgpt-cli/agent/tools (interfaces: Files)
3
4
// Package core_test is a generated GoMock package.
5
package core_test
6
7
import (
8
reflect "reflect"
9
10
gomock "github.com/golang/mock/gomock"
11
tools "github.com/kardolus/chatgpt-cli/agent/tools"
12
)
13
14
// MockFiles is a mock of Files interface.
15
type MockFiles struct {
16
ctrl *gomock.Controller
17
recorder *MockFilesMockRecorder
18
}
19
20
// MockFilesMockRecorder is the mock recorder for MockFiles.
21
type MockFilesMockRecorder struct {
22
mock *MockFiles
23
}
24
25
// NewMockFiles creates a new mock instance.
26
func NewMockFiles(ctrl *gomock.Controller) *MockFiles {
27
mock := &MockFiles{ctrl: ctrl}
28
mock.recorder = &MockFilesMockRecorder{mock}
29
return mock
30
}
31
32
// EXPECT returns an object that allows the caller to indicate expected use.
33
func (m *MockFiles) EXPECT() *MockFilesMockRecorder {
34
return m.recorder
35
}
36
37
// PatchFile mocks base method.
38
func (m *MockFiles) PatchFile(arg0 string, arg1 []byte) (tools.PatchResult, error) {
39
m.ctrl.T.Helper()
40
ret := m.ctrl.Call(m, "PatchFile", arg0, arg1)
41
ret0, _ := ret[0].(tools.PatchResult)
42
ret1, _ := ret[1].(error)
43
return ret0, ret1
44
}
45
46
// PatchFile indicates an expected call of PatchFile.
47
func (mr *MockFilesMockRecorder) PatchFile(arg0, arg1 interface{}) *gomock.Call {
48
mr.mock.ctrl.T.Helper()
49
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchFile", reflect.TypeOf((*MockFiles)(nil).PatchFile), arg0, arg1)
50
}
51
52
// ReadFile mocks base method.
53
func (m *MockFiles) ReadFile(arg0 string) ([]byte, error) {
54
m.ctrl.T.Helper()
55
ret := m.ctrl.Call(m, "ReadFile", arg0)
56
ret0, _ := ret[0].([]byte)
57
ret1, _ := ret[1].(error)
58
return ret0, ret1
59
}
60
61
// ReadFile indicates an expected call of ReadFile.
62
func (mr *MockFilesMockRecorder) ReadFile(arg0 interface{}) *gomock.Call {
63
mr.mock.ctrl.T.Helper()
64
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadFile", reflect.TypeOf((*MockFiles)(nil).ReadFile), arg0)
65
}
66
67
// ReplaceBytesInFile mocks base method.
68
func (m *MockFiles) ReplaceBytesInFile(arg0 string, arg1, arg2 []byte, arg3 int) (tools.ReplaceResult, error) {
69
m.ctrl.T.Helper()
70
ret := m.ctrl.Call(m, "ReplaceBytesInFile", arg0, arg1, arg2, arg3)
71
ret0, _ := ret[0].(tools.ReplaceResult)
72
ret1, _ := ret[1].(error)
73
return ret0, ret1
74
}
75
76
// ReplaceBytesInFile indicates an expected call of ReplaceBytesInFile.
77
func (mr *MockFilesMockRecorder) ReplaceBytesInFile(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
78
mr.mock.ctrl.T.Helper()
79
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplaceBytesInFile", reflect.TypeOf((*MockFiles)(nil).ReplaceBytesInFile), arg0, arg1, arg2, arg3)
80
}
81
82
// WriteFile mocks base method.
83
func (m *MockFiles) WriteFile(arg0 string, arg1 []byte) error {
84
m.ctrl.T.Helper()
85
ret := m.ctrl.Call(m, "WriteFile", arg0, arg1)
86
ret0, _ := ret[0].(error)
87
return ret0
88
}
89
90
// WriteFile indicates an expected call of WriteFile.
91
func (mr *MockFilesMockRecorder) WriteFile(arg0, arg1 interface{}) *gomock.Call {
92
mr.mock.ctrl.T.Helper()
93
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteFile", reflect.TypeOf((*MockFiles)(nil).WriteFile), arg0, arg1)
94
}
95
96