package testutils

import "github.com/cilium/ebpf/internal/testutils"

Index

Functions

func CheckFeatureTest

func CheckFeatureTest(t *testing.T, fn func() error)

func SkipIfNotSupported

func SkipIfNotSupported(tb testing.TB, err error)

func SkipOnOldKernel

func SkipOnOldKernel(tb testing.TB, minVersion, feature string)

func TestFiles

func TestFiles(t *testing.T, pattern string, fn func(*testing.T, string))

TestFiles calls fn for each file matching pattern.

The function errors out if the pattern matches no files.

Source Files

feature.go glob.go

Version
v0.4.0
Published
Mar 18, 2021
Platform
linux/amd64
Imports
7 packages
Last checked
1 hour ago

Tools for package owners.