testutil

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package testutil holds small helpers shared across test binaries. It is intended for use only from *_test.go files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SkipIfSymlinkUnsupported

func SkipIfSymlinkUnsupported(t *testing.T)

SkipIfSymlinkUnsupported skips the calling test when the host cannot create symbolic links. This typically happens on Windows without Developer Mode or elevated privileges, and in some sandboxed CI environments.

Both a file symlink and a directory symlink are probed: on Windows these use different code paths and can have different privilege requirements, so a test that assumes one works because the other does would fail instead of being skipped. Every test in the repo that creates a symlink may create either kind, so we gate conservatively on the weaker capability.

Types

This section is empty.

Jump to

Keyboard shortcuts

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