mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-26 11:29:37 +08:00
24
kit/utils/str_utils_test.go
Normal file
24
kit/utils/str_utils_test.go
Normal file
@@ -0,0 +1,24 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user