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.3.0
Published
Nov 20, 2020
Platform
js/wasm
Imports
7 packages
Last checked
now

Tools for package owners.