Files
PandaX/base/utils/str_utils_test.go
2021-12-26 22:24:44 +08: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)
}