22 lines
415 B
Go
22 lines
415 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)
|
|
|
|
t.Log(MakeMsgEx("serviceName", 1, 2, 3, &InternalMsg{}))
|
|
|
|
s := "hello world"
|
|
t.Log(MakeRpcMsg[string]("test.rpc", 0, &s))
|
|
}
|