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