summaryrefslogtreecommitdiff
path: root/internal/llm/test_helpers_test.go
blob: 0280af2ad2ac810d23c72fc355a381ff30092099 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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) {
	if err := RegisterAllProviders(); err != nil {
		panic(err)
	}
	os.Exit(m.Run())
}

func f64p(v float64) *float64 { return &v }