Documentation
¶
Index ¶
- func InitClient() error
- func LogTestStage(t *testing.T, stage, message string, args ...any)
- func LogTestSuccess(t *testing.T, message string, args ...any)
- func LogTestWarning(t *testing.T, message string, args ...any)
- func NewContext() (context.Context, context.CancelFunc)
- func RequireClient(t *testing.T)
- type TestConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogTestStage ¶
LogTestStage logs a named stage with optional GitHub Actions ::notice annotation.
func LogTestSuccess ¶
LogTestSuccess logs a successful step.
func LogTestWarning ¶
LogTestWarning logs a non-fatal warning.
func NewContext ¶
func NewContext() (context.Context, context.CancelFunc)
NewContext returns a context bound to the configured request timeout.
func RequireClient ¶
RequireClient ensures the shared iTunes client is initialised. Unlike the AXM client, the iTunes client requires no credentials — if initialisation fails it is a hard error rather than a skip.
Types ¶
type TestConfig ¶
TestConfig holds configuration for iTunes acceptance tests, driven by environment variables. No credentials are required — the iTunes Search API is a public, unauthenticated API.
var ( // Config is the global acceptance test configuration, initialised from env. Config *TestConfig // Client is the shared iTunes SDK client for acceptance tests. Client *itunes.Client )
Click to show internal directories.
Click to hide internal directories.