mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-20 17:50:25 +08:00
优化IP库内存
This commit is contained in:
@@ -12,6 +12,15 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestIPLibrary_Init(t *testing.T) {
|
||||
var lib = iplibrary.NewIPLibrary()
|
||||
|
||||
err := lib.Init()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestIPLibrary_Lookup(t *testing.T) {
|
||||
var stat1 = &runtime.MemStats{}
|
||||
runtime.ReadMemStats(stat1)
|
||||
|
||||
Reference in New Issue
Block a user