acceptance

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitClient

func InitClient() error

InitClient creates and stores the shared iTunes client.

func LogTestStage

func LogTestStage(t *testing.T, stage, message string, args ...any)

LogTestStage logs a named stage with optional GitHub Actions ::notice annotation.

func LogTestSuccess

func LogTestSuccess(t *testing.T, message string, args ...any)

LogTestSuccess logs a successful step.

func LogTestWarning

func LogTestWarning(t *testing.T, message string, args ...any)

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

func RequireClient(t *testing.T)

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

type TestConfig struct {
	RequestTimeout time.Duration
	Verbose        bool
}

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
)

Jump to

Keyboard shortcuts

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