originaldata

package
v0.1.0-preview.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package originaldata locates optional copyrighted game data for integration tests.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnavailable = errors.New("optional original game data unavailable")

ErrUnavailable means no optional installation was selected or found. Errors from an explicitly selected or present installation never wrap this sentinel.

Functions

func Check

func Check(t *testing.T, err error)

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

func Directory(t *testing.T, required ...string) string

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

func RequireFiles(t *testing.T, directory string, filenames ...string)

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

func ResolveDirectory() (string, error)

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

func TestProcess(t *testing.T, name, directory string, environment ...string) ([]byte, error)

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.

Jump to

Keyboard shortcuts

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