func CheckFeatureTest(t *testing.T, fn func() error)
func CreateCgroup(tb testing.TB) *os.File
func Files(t *testing.T, files []string, fn func(*testing.T, string))
Files calls fn for each given file.
The function errors out if the pattern matches no files.
func GetCgroupIno(t *testing.T, cgroup *os.File) uint64
func Glob(tb testing.TB, pattern string, excludes ...string) []string
Glob finds files matching a pattern.
The pattern should may include full path. Excludes use the same syntax as pattern, but are only applied to the basename instead of the full path.
func MustKernelVersion() internal.Version
func SkipIfNotSupported(tb testing.TB, err error)
func SkipOnOldKernel(tb testing.TB, minVersion, feature string)
func TempBPFFS(tb testing.TB) string
TempBPFFS creates a temporary directory on a BPF FS.
The directory is automatically cleaned up at the end of the test run.