Provider is the interface for AI test case generation backends.
| 9 | |
| 10 | // Provider is the interface for AI test case generation backends. |
| 11 | type Provider interface { |
| 12 | // GenerateTestCases generates test cases for the given function. |
| 13 | GenerateTestCases(ctx context.Context, fn *models.Function) ([]TestCase, error) |
| 14 | |
| 15 | // IsAvailable checks if the provider is available and configured. |
| 16 | IsAvailable() bool |
| 17 | |
| 18 | // Name returns the provider name for logging/debugging. |
| 19 | Name() string |
| 20 | } |
| 21 | |
| 22 | // TestCase represents a single generated test case. |
| 23 | type TestCase struct { |
no outgoing calls
no test coverage detected