mocks

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AIService

type AIService struct {
	mock.Mock
}

AIService is an autogenerated mock type for the AIService type

func NewAIService

func NewAIService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AIService

NewAIService creates a new instance of AIService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AIService) AskAISummaryFromFinding

func (_m *AIService) AskAISummaryFromFinding(ctx context.Context, f *model.Finding, r *model.Recommend, lang string) (string, error)

AskAISummaryFromFinding provides a mock function with given fields: ctx, f, r, lang

func (*AIService) AskAISummaryStreamFromFinding added in v0.10.0

func (_m *AIService) AskAISummaryStreamFromFinding(ctx context.Context, f *model.Finding, r *model.Recommend, lang string, stream finding.FindingService_GetAISummaryStreamServer) error

AskAISummaryStreamFromFinding provides a mock function with given fields: ctx, f, r, lang, stream

func (*AIService) ChatAI added in v0.15.0

ChatAI provides a mock function with given fields: ctx, req

func (*AIService) GenerateReport added in v0.16.0

GenerateReport provides a mock function with given fields: ctx, req

type StreamSender added in v0.16.0

type StreamSender[T interface{}] struct {
	mock.Mock
}

StreamSender is an autogenerated mock type for the StreamSender type

func NewStreamSender added in v0.16.0

func NewStreamSender[T interface{}](t interface {
	mock.TestingT
	Cleanup(func())
}) *StreamSender[T]

NewStreamSender creates a new instance of StreamSender. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StreamSender[T]) Send added in v0.16.0

func (_m *StreamSender[T]) Send(_a0 T) error

Send provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL