testpath

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package testpath provides filesystem helpers for tests that exercise Hime-san's deliberate symlink boundaries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TempDir

func TempDir(t testing.TB) string

TempDir returns the physical path to a fresh directory owned by the test.

macOS commonly exposes its temporary directory through /var even though /var is a root-owned system symlink to /private/var. Resolving a directory immediately after testing.TB creates it keeps tests portable without teaching production path validation to follow user-controlled symlinks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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