MCPcopy
hub / github.com/cweill/gotests / Provider

Interface Provider

internal/ai/provider.go:11–20  ·  view source on GitHub ↗

Provider is the interface for AI test case generation backends.

Source from the content-addressed store, hash-verified

9
10// Provider is the interface for AI test case generation backends.
11type 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.
23type TestCase struct {

Callers 11

writeTestsMethod · 0.95
writeTestsMethod · 0.95
writeTestsMethod · 0.95
Test_name_NameFunction · 0.65
ProcessMethod · 0.65
LoadCustomTemplatesMethod · 0.65
parseReceiverFunction · 0.65

Implementers 1

OllamaProviderinternal/ai/ollama.go

Calls

no outgoing calls

Tested by

no test coverage detected