github.com/cilium/ebpf@v0.15.1-0.20240517100537-8079b37aa138/btf/feature_test.go (about) 1 package btf 2 3 import ( 4 "testing" 5 6 "github.com/cilium/ebpf/internal/testutils" 7 ) 8 9 func TestHaveBTF(t *testing.T) { 10 testutils.CheckFeatureTest(t, haveBTF) 11 } 12 13 func TestHaveMapBTF(t *testing.T) { 14 testutils.CheckFeatureTest(t, haveMapBTF) 15 } 16 17 func TestHaveProgBTF(t *testing.T) { 18 testutils.CheckFeatureTest(t, haveProgBTF) 19 } 20 21 func TestHaveFuncLinkage(t *testing.T) { 22 testutils.CheckFeatureTest(t, haveFuncLinkage) 23 } 24 25 func TestHaveEnum64(t *testing.T) { 26 testutils.CheckFeatureTest(t, haveEnum64) 27 }