Files
PandaX/kit/utils/str_utils_test.go
2024-03-13 11:27:30 +08:00

25 lines
428 B
Go

package utils
import (
"log"
"strings"
"testing"
)
func TestIdsStrToIdsIntGroup(t *testing.T) {
group := IdsStrToIdsIntGroup("aaa")
t.Log(len(group))
}
func TestGetRealAddressByIP(t *testing.T) {
ip := GetRealAddressByIP("58.57.107.34")
t.Log(ip)
}
func TestDeptPCIds(t *testing.T) {
split := strings.Split(strings.Trim("/0/2", "/"), "/")
log.Println("split", split)
ids := DeptPCIds(split, 2, true)
t.Log(ids)
}