Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
kardolus
GitHub Repository: kardolus/chatgpt-cli
Path: blob/main/api/client/callermocks_test.go
2649 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
)
12
13
// MockCaller is a mock of Caller interface.
14
type MockCaller struct {
15
ctrl *gomock.Controller
16
recorder *MockCallerMockRecorder
17
}
18
19
// MockCallerMockRecorder is the mock recorder for MockCaller.
20
type MockCallerMockRecorder struct {
21
mock *MockCaller
22
}
23
24
// NewMockCaller creates a new mock instance.
25
func NewMockCaller(ctrl *gomock.Controller) *MockCaller {
26
mock := &MockCaller{ctrl: ctrl}
27
mock.recorder = &MockCallerMockRecorder{mock}
28
return mock
29
}
30
31
// EXPECT returns an object that allows the caller to indicate expected use.
32
func (m *MockCaller) EXPECT() *MockCallerMockRecorder {
33
return m.recorder
34
}
35
36
// Get mocks base method.
37
func (m *MockCaller) Get(arg0 string) ([]byte, error) {
38
m.ctrl.T.Helper()
39
ret := m.ctrl.Call(m, "Get", arg0)
40
ret0, _ := ret[0].([]byte)
41
ret1, _ := ret[1].(error)
42
return ret0, ret1
43
}
44
45
// Get indicates an expected call of Get.
46
func (mr *MockCallerMockRecorder) Get(arg0 interface{}) *gomock.Call {
47
mr.mock.ctrl.T.Helper()
48
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockCaller)(nil).Get), arg0)
49
}
50
51
// Post mocks base method.
52
func (m *MockCaller) Post(arg0 string, arg1 []byte, arg2 bool) ([]byte, error) {
53
m.ctrl.T.Helper()
54
ret := m.ctrl.Call(m, "Post", arg0, arg1, arg2)
55
ret0, _ := ret[0].([]byte)
56
ret1, _ := ret[1].(error)
57
return ret0, ret1
58
}
59
60
// Post indicates an expected call of Post.
61
func (mr *MockCallerMockRecorder) Post(arg0, arg1, arg2 interface{}) *gomock.Call {
62
mr.mock.ctrl.T.Helper()
63
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Post", reflect.TypeOf((*MockCaller)(nil).Post), arg0, arg1, arg2)
64
}
65
66
// PostWithHeaders mocks base method.
67
func (m *MockCaller) PostWithHeaders(arg0 string, arg1 []byte, arg2 map[string]string) ([]byte, error) {
68
m.ctrl.T.Helper()
69
ret := m.ctrl.Call(m, "PostWithHeaders", arg0, arg1, arg2)
70
ret0, _ := ret[0].([]byte)
71
ret1, _ := ret[1].(error)
72
return ret0, ret1
73
}
74
75
// PostWithHeaders indicates an expected call of PostWithHeaders.
76
func (mr *MockCallerMockRecorder) PostWithHeaders(arg0, arg1, arg2 interface{}) *gomock.Call {
77
mr.mock.ctrl.T.Helper()
78
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostWithHeaders", reflect.TypeOf((*MockCaller)(nil).PostWithHeaders), arg0, arg1, arg2)
79
}
80
81