mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-30 01:48:39 +08:00
优化功能,通知功能,任务功能
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
package utils
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"log"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestIdsStrToIdsIntGroup(t *testing.T) {
|
||||
group := IdsStrToIdsIntGroup("aaa")
|
||||
@@ -11,3 +15,12 @@ func TestGetRealAddressByIP(t *testing.T) {
|
||||
ip := GetRealAddressByIP("10.42.0.1")
|
||||
t.Log(ip)
|
||||
}
|
||||
|
||||
func TestDeptPCIds(t *testing.T) {
|
||||
ss := strings.Trim("/0/2/6/4", "/")
|
||||
|
||||
split := strings.Split(ss, "/")
|
||||
log.Println("split", split)
|
||||
ids := DeptPCIds(split, 4, false)
|
||||
t.Log(ids)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user