package testutils
import "github.com/cilium/ebpf/internal/testutils"
Index ¶
- func CheckFeatureTest(t *testing.T, fn func() error)
- func SkipIfNotSupported(tb testing.TB, err error)
- func SkipOnOldKernel(tb testing.TB, minVersion, feature string)
- func TempBPFFS(tb testing.TB) string
- func TestFiles(t *testing.T, pattern string, fn func(*testing.T, string))
Functions ¶
func CheckFeatureTest ¶
func SkipIfNotSupported ¶
func SkipOnOldKernel ¶
func TempBPFFS ¶
TempBPFFS creates a temporary directory on a BPF FS.
The directory is automatically cleaned up at the end of the test run.
func TestFiles ¶
TestFiles calls fn for each file matching pattern.
The function errors out if the pattern matches no files.
Source Files ¶
- Version
- v0.5.0
- Published
- Apr 8, 2021
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 1 hour ago –
Tools for package owners.