fox/ipb/helper_test.go

19 lines
355 B
Go
Raw Normal View History

2025-05-29 11:54:33 +08:00
package ipb
import (
2025-05-29 22:30:49 +08:00
"crypto/md5"
"fmt"
2025-05-29 11:54:33 +08:00
"testing"
)
func TestWipeWarn(t *testing.T) {
t.Log(MakeMsg("serviceName", 1, 2, 3, []byte("hello world")))
2025-05-29 22:30:49 +08:00
username := fmt.Sprintf("test%04d", 1)
t.Log(username)
password := fmt.Sprintf("%x", md5.Sum([]byte(username)))
t.Log(password)
2025-06-02 21:37:23 +08:00
s := "hello world"
t.Log(MakeRpcMsg[string]("test.rpc", 0, &s))
2025-05-29 11:54:33 +08:00
}