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

Function TestProgramClose

prog_test.go:176–182  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

174}
175
176func TestProgramClose(t *testing.T) {
177 prog := createBasicProgram(t)
178
179 if err := prog.Close(); err != nil {
180 t.Fatal("Can't close program:", err)
181 }
182}
183
184func TestProgramPin(t *testing.T) {
185 spec := fixupProgramSpec(basicProgramSpec)

Callers

nothing calls this directly

Calls 2

createBasicProgramFunction · 0.85
CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…