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

Function createMap

helpers_test.go:111–121  ·  view source on GitHub ↗
(tb testing.TB, typ MapType, maxEntries uint32)

Source from the content-addressed store, hash-verified

109}
110
111func createMap(tb testing.TB, typ MapType, maxEntries uint32) *Map {
112 tb.Helper()
113
114 return mustNewMap(tb, &MapSpec{
115 Name: "test",
116 Type: typ,
117 KeySize: 4,
118 ValueSize: 4,
119 MaxEntries: maxEntries,
120 }, nil)
121}
122
123func createMapInMap(tb testing.TB, outer, inner MapType) *Map {
124 tb.Helper()

Callers 15

TestProgramInfoMapIDsFunction · 0.70
TestMapFunction · 0.70
TestMapBatchFunction · 0.70
TestMapBatchUnprivilegedFunction · 0.70
TestMapBatchCursorReuseFunction · 0.70
TestMapLookupKeyTooSmallFunction · 0.70
TestBatchAPIMapDeleteFunction · 0.70
TestMapCloseFunction · 0.70
TestMapPinFunction · 0.70
TestMapPinWithEmptyPathFunction · 0.70

Calls 1

mustNewMapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…