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

Function TestLoadInvalidMapMissingSymbol

elf_reader_test.go:423–430  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

421}
422
423func TestLoadInvalidMapMissingSymbol(t *testing.T) {
424 file := testutils.NativeFile(t, "testdata/invalid_map_static-%s.elf")
425 _, err := LoadCollectionSpec(file)
426 t.Log(err)
427 if err == nil {
428 t.Fatal("Loading a map with static qualifier should fail")
429 }
430}
431
432func TestLoadInitializedBTFMap(t *testing.T) {
433 testutils.Files(t, testutils.Glob(t, "testdata/btf_map_init-*.elf"), func(t *testing.T, file string) {

Callers

nothing calls this directly

Calls 2

NativeFileFunction · 0.92
LoadCollectionSpecFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…