Documentation
¶
Overview ¶
Package testutil provides helpers for tests that depend on TA game assets.
Index ¶
- func PackedPath(t *testing.T) string
- func TAKUnpackedDir(t *testing.T, rel ...string) string
- func TAKUnpackedFile(t *testing.T, rel ...string) string
- func TAKUnpackedPath(t *testing.T) string
- func UnpackedDir(t *testing.T, rel ...string) string
- func UnpackedFile(t *testing.T, rel ...string) string
- func UnpackedPath(t *testing.T) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PackedPath ¶
PackedPath returns the TA_PACKED_PATH or skips/fails the test.
func TAKUnpackedDir ¶
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 ¶
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 ¶
TAKUnpackedPath returns the TAK_UNPACKED_PATH (unpacked TA: Kingdoms assets) or skips/fails the test the same way UnpackedPath does.
func UnpackedDir ¶
UnpackedDir returns the full path to a directory within the unpacked assets, or skips the test if the directory doesn't exist.
func UnpackedFile ¶
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 ¶
UnpackedPath returns the TA_UNPACKED_PATH or skips/fails the test.
Types ¶
This section is empty.