test

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIKeyEnvVar = "GROK_API_KEY"
	TestAPIURL   = "https://api.x.ai/v1/"
)

APIKeyEnvVar is the environment variable name that stores the API key

Variables

This section is empty.

Functions

func GetTestAPIKey

func GetTestAPIKey(t *testing.T) string

GetTestAPIKey retrieves an API key from environment variables If the environment variable doesn't exist, returns a test placeholder key

func SkipIfNoRealAPIKey

func SkipIfNoRealAPIKey(t *testing.T) string

SkipIfNoRealAPIKey skips the test if no real API key is provided Returns the API key if it exists

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL