Documentation ¶
Overview ¶
Package query is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InputTextFile ¶
type MockOpenAIClient ¶
type MockOpenAIClient struct {
// contains filtered or unexported fields
}
MockOpenAIClient is a mock of OpenAIClient interface.
func NewMockOpenAIClient ¶
func NewMockOpenAIClient(ctrl *gomock.Controller) *MockOpenAIClient
NewMockOpenAIClient creates a new mock instance.
func (*MockOpenAIClient) Ask ¶
func (m *MockOpenAIClient) Ask(ctx context.Context, query, outputFormat, responseLanguage string, textFiles []InputTextFile) (string, error)
Ask mocks base method.
func (*MockOpenAIClient) EXPECT ¶
func (m *MockOpenAIClient) EXPECT() *MockOpenAIClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockOpenAIClientMockRecorder ¶
type MockOpenAIClientMockRecorder struct {
// contains filtered or unexported fields
}
MockOpenAIClientMockRecorder is the mock recorder for MockOpenAIClient.
type MockUsecaseQuery ¶
type MockUsecaseQuery struct {
// contains filtered or unexported fields
}
MockUsecaseQuery is a mock of UsecaseQuery interface.
func NewMockUsecaseQuery ¶
func NewMockUsecaseQuery(ctrl *gomock.Controller) *MockUsecaseQuery
NewMockUsecaseQuery creates a new mock instance.
func (*MockUsecaseQuery) EXPECT ¶
func (m *MockUsecaseQuery) EXPECT() *MockUsecaseQueryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUsecaseQuery) QueryToOpenAI ¶
func (m *MockUsecaseQuery) QueryToOpenAI(query, outputFormat, responseLanguage string, filePaths []string) (string, error)
QueryToOpenAI mocks base method.
type MockUsecaseQueryMockRecorder ¶
type MockUsecaseQueryMockRecorder struct {
// contains filtered or unexported fields
}
MockUsecaseQueryMockRecorder is the mock recorder for MockUsecaseQuery.
func (*MockUsecaseQueryMockRecorder) QueryToOpenAI ¶
func (mr *MockUsecaseQueryMockRecorder) QueryToOpenAI(query, outputFormat, responseLanguage, filePaths any) *gomock.Call
QueryToOpenAI indicates an expected call of QueryToOpenAI.
type OpenAIClient ¶
type UsecaseQuery ¶
type UsecaseQuery interface {
QueryToOpenAI(query string, outputFormat string, responseLanguage string, filePaths []string) (string, error)
}
func NewUsecaseQuery ¶
func NewUsecaseQuery(openAIClient OpenAIClient) UsecaseQuery