mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-16 10:00:26 +08:00
提升IP名单性能
This commit is contained in:
22
internal/utils/version_test.go
Normal file
22
internal/utils/version_test.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package utils_test
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeNode/internal/utils"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestVersionToLong(t *testing.T) {
|
||||
for _, v := range []string{
|
||||
"",
|
||||
"a",
|
||||
"1",
|
||||
"1.2",
|
||||
"1.2.1",
|
||||
"1.2.1.4",
|
||||
"1.2.3.4.5",
|
||||
} {
|
||||
t.Log(v, "=>", utils.VersionToLong(v))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user