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