fox/ipb/helper_test.go
2025-06-02 21:37:23 +08:00

19 lines
355 B
Go

package ipb
import (
"crypto/md5"
"fmt"
"testing"
)
func TestWipeWarn(t *testing.T) {
t.Log(MakeMsg("serviceName", 1, 2, 3, []byte("hello world")))
username := fmt.Sprintf("test%04d", 1)
t.Log(username)
password := fmt.Sprintf("%x", md5.Sum([]byte(username)))
t.Log(password)
s := "hello world"
t.Log(MakeRpcMsg[string]("test.rpc", 0, &s))
}