testutil

package
v0.54.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TempDirInMemory

func TempDirInMemory(t testing.TB) string

TempDirInMemory creates a temporary directory that preferentially uses in-memory filesystems (tmpfs/ramdisk) when available. This reduces I/O overhead for git-heavy tests.

On Linux: Uses /dev/shm if available (tmpfs ramdisk) On macOS: Falls back to standard temp (ramdisks require manual setup) On Windows: Falls back to standard temp

The directory is automatically cleaned up when the test ends.

Types

This section is empty.

Directories

Path Synopsis
Package fixtures provides realistic test data generation for benchmarks and tests.
Package fixtures provides realistic test data generation for benchmarks and tests.

Jump to

Keyboard shortcuts

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