testutil

package
v0.0.2-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireIPTables

func RequireIPTables(t *testing.T)

RequireIPTables will skip the test if not running as root or if iptables is not available. If the test is detected as running within CI it will error.

func RequireQemuImg

func RequireQemuImg(t *testing.T)

RequireQemuImg will check if the qemu-img executable is available and error if it is not found.

func RequireRoot

func RequireRoot(t *testing.T)

RequireRoot will skip the test if not running as root. If the test is detected as running within CI it will error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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