MCPcopy Create free account
hub / github.com/astercloud/aster / MockProviderWithError

Struct MockProviderWithError

pkg/memory/session_summary_test.go:729–731  ·  view source on GitHub ↗

MockProviderWithError 模拟会返回错误的 Provider

Source from the content-addressed store, hash-verified

727
728// MockProviderWithError 模拟会返回错误的 Provider
729type MockProviderWithError struct {
730 err error
731}
732
733func (m *MockProviderWithError) Complete(ctx context.Context, messages []types.Message, opts *provider.StreamOptions) (*provider.CompleteResponse, error) {
734 return nil, m.err

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected