Documentation
¶
Index ¶
- type Client
- type Client_CompletionsStream_Call
- func (_c *Client_CompletionsStream_Call) Return(_a0 iter.Seq2[[]byte, error], _a1 error) *Client_CompletionsStream_Call
- func (_c *Client_CompletionsStream_Call) Run(run func(ctx context.Context, config *providers.Config, reqBody []byte)) *Client_CompletionsStream_Call
- func (_c *Client_CompletionsStream_Call) RunAndReturn(...) *Client_CompletionsStream_Call
- type Client_Completions_Call
- func (_c *Client_Completions_Call) Return(_a0 []byte, _a1 error) *Client_Completions_Call
- func (_c *Client_Completions_Call) Run(run func(ctx context.Context, config *providers.Config, reqBody []byte)) *Client_Completions_Call
- func (_c *Client_Completions_Call) RunAndReturn(run func(context.Context, *providers.Config, []byte) ([]byte, error)) *Client_Completions_Call
- type Client_Expecter
- type ConnectionTester
- type ConnectionTester_Expecter
- type ConnectionTester_TestConnection_Call
- func (_c *ConnectionTester_TestConnection_Call) Return(_a0 providers.ProbeResult) *ConnectionTester_TestConnection_Call
- func (_c *ConnectionTester_TestConnection_Call) Run(run func(ctx context.Context, config *providers.Config)) *ConnectionTester_TestConnection_Call
- func (_c *ConnectionTester_TestConnection_Call) RunAndReturn(run func(context.Context, *providers.Config) providers.ProbeResult) *ConnectionTester_TestConnection_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
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 ¶
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 (_c *Client_CompletionsStream_Call) Return(_a0 iter.Seq2[[]byte, error], _a1 error) *Client_CompletionsStream_Call
func (*Client_CompletionsStream_Call) Run ¶
func (_c *Client_CompletionsStream_Call) Run(run func(ctx context.Context, config *providers.Config, reqBody []byte)) *Client_CompletionsStream_Call
func (*Client_CompletionsStream_Call) RunAndReturn ¶
type Client_Completions_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 (_c *Client_Completions_Call) Return(_a0 []byte, _a1 error) *Client_Completions_Call
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 ¶
func (_c *Client_Completions_Call) RunAndReturn(run func(context.Context, *providers.Config, []byte) ([]byte, error)) *Client_Completions_Call
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 ¶
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 (_m *ConnectionTester) EXPECT() *ConnectionTester_Expecter
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 ¶
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 (_c *ConnectionTester_TestConnection_Call) Return(_a0 providers.ProbeResult) *ConnectionTester_TestConnection_Call
func (*ConnectionTester_TestConnection_Call) Run ¶
func (_c *ConnectionTester_TestConnection_Call) Run(run func(ctx context.Context, config *providers.Config)) *ConnectionTester_TestConnection_Call
func (*ConnectionTester_TestConnection_Call) RunAndReturn ¶
func (_c *ConnectionTester_TestConnection_Call) RunAndReturn(run func(context.Context, *providers.Config) providers.ProbeResult) *ConnectionTester_TestConnection_Call