MCPcopy
hub / github.com/cilium/ebpf / TestLoadKernelModuleSpec

Function TestLoadKernelModuleSpec

btf/kernel_test.go:34–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

32}
33
34func TestLoadKernelModuleSpec(t *testing.T) {
35 if _, err := os.Stat("/sys/kernel/btf/bpf_testmod"); os.IsNotExist(err) {
36 t.Skip("/sys/kernel/btf/bpf_testmod not present")
37 }
38
39 _, err := LoadKernelModuleSpec("bpf_testmod")
40 qt.Assert(t, qt.IsNil(err))
41}
42
43func TestCache(t *testing.T) {
44 c := NewCache()

Callers

nothing calls this directly

Calls 2

LoadKernelModuleSpecFunction · 0.85
IsNilMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…