Documentation
¶
Overview ¶
Package originaldata locates optional copyrighted game data for integration tests.
Index ¶
- Variables
- func Check(t *testing.T, err error)
- func Directory(t *testing.T, required ...string) string
- func RequireFiles(t *testing.T, directory string, filenames ...string)
- func Required() bool
- func ResolveDirectory() (string, error)
- func TestProcess(t *testing.T, name, directory string, environment ...string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
ErrUnavailable means no optional installation was selected or found. Errors from an explicitly selected or present installation never wrap this sentinel.
Functions ¶
func Check ¶
Check fails broken selected data, preserving the loader's diagnostic. Only genuinely absent optional data skips, and strict provisioned mode fails that too.
func Directory ¶
Directory selects original data and checks required files. By default it checks conversation inputs; callers with other needs can supply filenames. Once a source is selected, missing files are failures, not optional skips.
func RequireFiles ¶
RequireFiles checks additional inputs in an already-selected installation.
func Required ¶
func Required() bool
Required enables the provisioned-data test contract. Other test skips (such as platform exclusions) remain the responsibility of the gate's skip inventory.
func ResolveDirectory ¶
ResolveDirectory selects PATH before DIR, then repository OLD. It never reads HOME or falls back after an explicit selection, even when that path is broken. Successful paths are absolute and symlink-resolved for reference-cache keys.
func TestProcess ¶
TestProcess runs a negative fixture in this test binary, so Fatal and Skip can be distinguished without failing or skipping the parent regression test. Callers supply a private working directory and explicit environment overrides.
Types ¶
This section is empty.