MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestMemoryList_CleanAll

Function TestMemoryList_CleanAll

internal/caches/list_memory_test.go:262–268  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

260}
261
262func TestMemoryList_CleanAll(t *testing.T) {
263 var list = caches.NewMemoryList().(*caches.MemoryList)
264 _ = list.Add("a", &caches.Item{})
265 _ = list.CleanAll()
266 logs.PrintAsJSON(list.ItemMaps(), t)
267 t.Log(list.Count())
268}
269
270func TestMemoryList_GC(t *testing.T) {
271 if !testutils.IsSingleTesting() {

Callers

nothing calls this directly

Calls 6

NewMemoryListFunction · 0.92
ItemMapsMethod · 0.80
LogMethod · 0.80
AddMethod · 0.65
CleanAllMethod · 0.65
CountMethod · 0.65

Tested by

no test coverage detected