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