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

Function createBasicProgram

helpers_test.go:192–194  ·  view source on GitHub ↗

createBasicProgram returns a program of an unspecified type which returns a non-zero value when executed.

(tb testing.TB)

Source from the content-addressed store, hash-verified

190// createBasicProgram returns a program of an unspecified type which returns
191// a non-zero value when executed.
192func createBasicProgram(tb testing.TB) *Program {
193 return mustNewProgram(tb, basicProgramSpec, nil)
194}
195
196func newCollection(tb testing.TB, spec *CollectionSpec, opts *CollectionOptions) (*Collection, error) {
197 tb.Helper()

Callers 13

TestProgramStatsFunction · 0.85
BenchmarkStatsFunction · 0.85
TestLoadWrongPinFunction · 0.85
TestProgramBenchmarkFunction · 0.85
TestProgramCloseFunction · 0.85
TestProgramUnpinFunction · 0.85
TestProgramMarshalingFunction · 0.85
TestProgramGetNextIDFunction · 0.85
TestNewProgramFromIDFunction · 0.85

Calls 1

mustNewProgramFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…