@@ -24,6 +24,34 @@
24- **File permissions**: Use octal notation (0o755, 0o644) for file permissions
24- **File permissions**: Use octal notation (0o755, 0o644) for file permissions
25- **Comments**: End comments in periods unless comments are at the end of the line.
25- **Comments**: End comments in periods unless comments are at the end of the line.
27+## Testing with Mock Providers
29+When writing tests that involve provider configurations, use the mock providers to avoid API calls:
32+func TestYourFunction(t *testing.T) {
33+ // Enable mock providers for testing
34+ originalUseMock := config.UseMockProviders
35+ config.UseMockProviders = true
37+ config.UseMockProviders = originalUseMock
38+ config.ResetProviders()
41+ // Reset providers to ensure fresh mock data
42+ config.ResetProviders()
44+ // Your test code here - providers will now return mock data
45+ providers := config.Providers()
50+The mock providers include:
51+- **Anthropic**: claude-3-opus, claude-3-haiku, claude-3-5-sonnet-20241022, claude-3-5-haiku-20241022
52+- **OpenAI**: gpt-4, gpt-3.5-turbo, gpt-4-turbo, gpt-4o, gpt-4o-mini
53+- **Gemini**: gemini-2.5-pro, gemini-2.5-flash
27## Formatting
55## Formatting
29- ALWAYS format any Go code you write.
57- ALWAYS format any Go code you write.