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

Function TestKVIPList_DeleteExpiredItems

internal/iplibrary/ip_list_kv_test.go:112–126  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

110}
111
112func TestKVIPList_DeleteExpiredItems(t *testing.T) {
113 kv, err := iplibrary.NewKVIPList()
114 if err != nil {
115 t.Fatal(err)
116 }
117
118 defer func() {
119 _ = kv.Flush()
120 }()
121
122 err = kv.DeleteExpiredItems()
123 if err != nil {
124 t.Fatal(err)
125 }
126}
127
128func TestKVIPList_UpdateMaxVersion(t *testing.T) {
129 kv, err := iplibrary.NewKVIPList()

Callers

nothing calls this directly

Calls 3

FlushMethod · 0.95
DeleteExpiredItemsMethod · 0.95
NewKVIPListFunction · 0.92

Tested by

no test coverage detected