Documentation ¶
Index ¶
- func CheckFeatureMatrix[K comparable](t *testing.T, fm internal.FeatureMatrix[K])
- func CheckFeatureTest(t *testing.T, fn func() error)
- func ClangBin(tb testing.TB) string
- func CreateCgroup(tb testing.TB) *os.File
- func Files(t *testing.T, files []string, fn func(*testing.T, string))
- func GetCgroupIno(t *testing.T, cgroup *os.File) uint64
- func Glob(tb testing.TB, pattern string, excludes ...string) []string
- func IsDeepCopy[T any](got, want T) qt.Checker
- func IsKernelLessThan(tb testing.TB, minVersion string) bool
- func LockOSThreadToSingleCPU(tb testing.TB)
- func NativeFile(tb testing.TB, path string) string
- func Rand(tb testing.TB) *rand.Rand
- func SkipIfNotSupported(tb testing.TB, err error)
- func SkipOnOldKernel(tb testing.TB, minVersion, feature string)
- func TempBPFFS(tb testing.TB) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFeatureMatrix ¶ added in v0.10.0
func CheckFeatureMatrix[K comparable](t *testing.T, fm internal.FeatureMatrix[K])
func CheckFeatureTest ¶
func Files ¶ added in v0.6.0
Files calls fn for each given file.
The function errors out if the pattern matches no files.
func Glob ¶ added in v0.6.0
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 IsDeepCopy ¶ added in v0.16.0
IsDeepCopy checks that got is a deep copy of want.
All primitive values must be equal, but pointers must be distinct. This is different from reflect.DeepEqual which will accept equal pointer values. That is, reflect.DeepEqual(a, a) is true, while IsDeepCopy(a, a) is false.
func IsKernelLessThan ¶ added in v0.9.2
func LockOSThreadToSingleCPU ¶ added in v0.15.0
LockOSThreadToSingleCPU force the current goroutine to run on a single CPU.
func NativeFile ¶ added in v0.14.0
NativeFile substitutes %s with an abbreviation of the host endianness.
func SkipIfNotSupported ¶
func SkipOnOldKernel ¶
Types ¶
This section is empty.