testutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package testutil provides helpers for tests that depend on TA game assets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PackedPath

func PackedPath(t *testing.T) string

PackedPath returns the TA_PACKED_PATH or skips/fails the test.

func TAKUnpackedDir

func TAKUnpackedDir(t *testing.T, rel ...string) string

TAKUnpackedDir returns the full path to a directory within the unpacked TA: Kingdoms assets, or skips the test if the directory doesn't exist.

func TAKUnpackedFile

func TAKUnpackedFile(t *testing.T, rel ...string) string

TAKUnpackedFile returns the full path to a file within the unpacked TA: Kingdoms assets, or skips the test if TAK_UNPACKED_PATH is not set.

func TAKUnpackedPath

func TAKUnpackedPath(t *testing.T) string

TAKUnpackedPath returns the TAK_UNPACKED_PATH (unpacked TA: Kingdoms assets) or skips/fails the test the same way UnpackedPath does.

func UnpackedDir

func UnpackedDir(t *testing.T, rel ...string) string

UnpackedDir returns the full path to a directory within the unpacked assets, or skips the test if the directory doesn't exist.

func UnpackedFile

func UnpackedFile(t *testing.T, rel ...string) string

UnpackedFile returns the full path to a file within the unpacked assets, or skips the test if TA_UNPACKED_PATH is not set.

func UnpackedPath

func UnpackedPath(t *testing.T) string

UnpackedPath returns the TA_UNPACKED_PATH or skips/fails the test.

Types

This section is empty.

Jump to

Keyboard shortcuts

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