Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadTestDotEnv ¶
LoadTestDotEnv loads .env.test from the project root into the process environment. It is safe to call multiple times — the file is only read once. Existing env vars are never overridden.
func RequireAPIKey ¶
RequireAPIKey skips the test if the named environment variable is not set or is empty. Use this for tests that need real API keys from .env.
Example:
func TestLiveChat(t *testing.T) {
key := testutil.RequireAPIKey(t, "OPENROUTER_API_KEY")
// ... use key
}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.