Files
PandaX/kit/utils/str_utils_test.go
lixxxww 0ff66b9d43 提交kit/utils
Signed-off-by: lixxxww <941403820@qq.com>
2024-01-23 11:57:42 +00:00

25 lines
425 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("10.42.0.1")
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)
}