roottest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package roottest gates tests that need root privileges (mounts, mknod, trusted.* xattrs, ...). Tests call Require up top and skip when unprivileged; importing this package is also the marker hack/run-root-tests.sh uses to discover which packages to rerun as root.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Require

func Require(tb testing.TB, reason string)

Require skips the test unless it is running as root. reason names the privileged operation the test needs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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