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

Function createMapInMap

helpers_test.go:123–137  ·  view source on GitHub ↗
(tb testing.TB, outer, inner MapType)

Source from the content-addressed store, hash-verified

121}
122
123func createMapInMap(tb testing.TB, outer, inner MapType) *Map {
124 tb.Helper()
125
126 return mustNewMap(tb, &MapSpec{
127 Type: outer,
128 KeySize: 4,
129 MaxEntries: 2,
130 InnerMap: &MapSpec{
131 Type: inner,
132 KeySize: 4,
133 ValueSize: 4,
134 MaxEntries: 2,
135 },
136 }, nil)
137}
138
139func newProgram(tb testing.TB, spec *ProgramSpec, opts *ProgramOptions) (*Program, error) {
140 tb.Helper()

Callers 4

TestNestedMapPinFunction · 0.85
TestMapInMapFunction · 0.85
TestNewMapInMapFromFDFunction · 0.85
TestIterateMapInMapFunction · 0.85

Calls 1

mustNewMapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…