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

Function mustNewCollection

helpers_test.go:217–222  ·  view source on GitHub ↗
(tb testing.TB, spec *CollectionSpec, opts *CollectionOptions)

Source from the content-addressed store, hash-verified

215}
216
217func mustNewCollection(tb testing.TB, spec *CollectionSpec, opts *CollectionOptions) *Collection {
218 tb.Helper()
219 c, err := newCollection(tb, spec, opts)
220 qt.Assert(tb, qt.IsNil(err))
221 return c
222}
223
224func loadAndAssign(tb testing.TB, spec *CollectionSpec, to any, opts *CollectionOptions) error {
225 tb.Helper()

Callers 9

TestBatchMapWithLockFunction · 0.85
TestMapWithLockFunction · 0.85
TestArenaFunction · 0.85
TestCollectionAssignFunction · 0.85
TestCollectionAssignFailFunction · 0.85
TestLinkedELFFunction · 0.85

Calls 2

newCollectionFunction · 0.85
IsNilMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…