Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ./llm.go
Generated by this command:
mockgen -source=./llm.go -destination=../../../mocks/llm.mock.go -package=aimocks -typed=true Service
Package aimocks is a generated GoMock package.
Index ¶
- type MockService
- type MockServiceMockRecorder
- type ServiceInvokeCall
- func (c *ServiceInvokeCall) Do(f func(context.Context, domain.LLMRequest) (domain.LLMResponse, error)) *ServiceInvokeCall
- func (c *ServiceInvokeCall) DoAndReturn(f func(context.Context, domain.LLMRequest) (domain.LLMResponse, error)) *ServiceInvokeCall
- func (c *ServiceInvokeCall) Return(arg0 domain.LLMResponse, arg1 error) *ServiceInvokeCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) Invoke ¶
func (m *MockService) Invoke(ctx context.Context, req domain.LLMRequest) (domain.LLMResponse, error)
Invoke mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) Invoke ¶
func (mr *MockServiceMockRecorder) Invoke(ctx, req any) *ServiceInvokeCall
Invoke indicates an expected call of Invoke.
type ServiceInvokeCall ¶
ServiceInvokeCall wrap *gomock.Call
func (*ServiceInvokeCall) Do ¶
func (c *ServiceInvokeCall) Do(f func(context.Context, domain.LLMRequest) (domain.LLMResponse, error)) *ServiceInvokeCall
Do rewrite *gomock.Call.Do
func (*ServiceInvokeCall) DoAndReturn ¶
func (c *ServiceInvokeCall) DoAndReturn(f func(context.Context, domain.LLMRequest) (domain.LLMResponse, error)) *ServiceInvokeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceInvokeCall) Return ¶
func (c *ServiceInvokeCall) Return(arg0 domain.LLMResponse, arg1 error) *ServiceInvokeCall
Return rewrite *gomock.Call.Return
Click to show internal directories.
Click to hide internal directories.