mocks

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. 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 (*Client) Completions

func (_m *Client) Completions(ctx context.Context, config *providers.Config, reqBody []byte) ([]byte, error)

Completions provides a mock function with given fields: ctx, config, reqBody

func (*Client) CompletionsStream

func (_m *Client) CompletionsStream(ctx context.Context, config *providers.Config, reqBody []byte) (iter.Seq2[[]byte, error], error)

CompletionsStream provides a mock function with given fields: ctx, config, reqBody

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

type Client_CompletionsStream_Call

type Client_CompletionsStream_Call struct {
	*mock.Call
}

Client_CompletionsStream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CompletionsStream'

func (*Client_CompletionsStream_Call) Return

func (*Client_CompletionsStream_Call) Run

func (*Client_CompletionsStream_Call) RunAndReturn

type Client_Completions_Call

type Client_Completions_Call struct {
	*mock.Call
}

Client_Completions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Completions'

func (*Client_Completions_Call) Return

func (*Client_Completions_Call) Run

func (_c *Client_Completions_Call) Run(run func(ctx context.Context, config *providers.Config, reqBody []byte)) *Client_Completions_Call

func (*Client_Completions_Call) RunAndReturn

type Client_Expecter

type Client_Expecter struct {
	// contains filtered or unexported fields
}

func (*Client_Expecter) Completions

func (_e *Client_Expecter) Completions(ctx interface{}, config interface{}, reqBody interface{}) *Client_Completions_Call

Completions is a helper method to define mock.On call

  • ctx context.Context
  • config *providers.Config
  • reqBody []byte

func (*Client_Expecter) CompletionsStream

func (_e *Client_Expecter) CompletionsStream(ctx interface{}, config interface{}, reqBody interface{}) *Client_CompletionsStream_Call

CompletionsStream is a helper method to define mock.On call

  • ctx context.Context
  • config *providers.Config
  • reqBody []byte

type ConnectionTester

type ConnectionTester struct {
	mock.Mock
}

ConnectionTester is an autogenerated mock type for the ConnectionTester type

func NewConnectionTester

func NewConnectionTester(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConnectionTester

NewConnectionTester creates a new instance of ConnectionTester. 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 (*ConnectionTester) EXPECT

func (*ConnectionTester) TestConnection

func (_m *ConnectionTester) TestConnection(ctx context.Context, config *providers.Config) providers.ProbeResult

TestConnection provides a mock function with given fields: ctx, config

type ConnectionTester_Expecter

type ConnectionTester_Expecter struct {
	// contains filtered or unexported fields
}

func (*ConnectionTester_Expecter) TestConnection

func (_e *ConnectionTester_Expecter) TestConnection(ctx interface{}, config interface{}) *ConnectionTester_TestConnection_Call

TestConnection is a helper method to define mock.On call

  • ctx context.Context
  • config *providers.Config

type ConnectionTester_TestConnection_Call

type ConnectionTester_TestConnection_Call struct {
	*mock.Call
}

ConnectionTester_TestConnection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestConnection'

func (*ConnectionTester_TestConnection_Call) Return

func (*ConnectionTester_TestConnection_Call) Run

func (*ConnectionTester_TestConnection_Call) RunAndReturn

Jump to

Keyboard shortcuts

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