mock

package
v0.0.0-...-732dc05 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenAIService

type OpenAIService struct {
	mock.Mock
}

OpenAIService is an autogenerated mock type for the OpenAIService type

func NewOpenAIService

func NewOpenAIService(t interface {
	mock.TestingT
	Cleanup(func())
}) *OpenAIService

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

func (*OpenAIService) GenerateConfig

func (_m *OpenAIService) GenerateConfig(ctx context.Context, format string, message string) (string, error)

GenerateConfig provides a mock function with given fields: ctx, format, message

func (*OpenAIService) Ping

func (_m *OpenAIService) Ping(ctx context.Context) error

Ping provides a mock function with given fields: ctx

func (*OpenAIService) RegenerateConfig

func (_m *OpenAIService) RegenerateConfig(ctx context.Context, format string, oldConfig string, errMessage string, contextMessages ...string) (string, error)

RegenerateConfig provides a mock function with given fields: ctx, format, oldConfig, errMessage, contextMessages

Jump to

Keyboard shortcuts

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