diff options
Diffstat (limited to 'internal/llm/test_helpers_test.go')
| -rw-r--r-- | internal/llm/test_helpers_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/llm/test_helpers_test.go b/internal/llm/test_helpers_test.go index 051747a..b6553bf 100644 --- a/internal/llm/test_helpers_test.go +++ b/internal/llm/test_helpers_test.go @@ -1,3 +1,15 @@ package llm +import ( + "os" + "testing" +) + +// TestMain registers all built-in providers before any test runs, mirroring +// the explicit registration that happens in production binaries. +func TestMain(m *testing.M) { + RegisterAllProviders() + os.Exit(m.Run()) +} + func f64p(v float64) *float64 { return &v } |
