added test
This commit is contained in:
parent
530e56cfe2
commit
3a0d5cb590
@ -1 +1,23 @@
|
|||||||
package keystore
|
package keystore
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestGetKey(t *testing.T) {
|
||||||
|
|
||||||
|
|
||||||
|
str, _:= NewKeyStoreSerivce().CreateKey()
|
||||||
|
|
||||||
|
|
||||||
|
t.Log(str)
|
||||||
|
t.Log(len(str))
|
||||||
|
|
||||||
|
ss := strings.Replace(str, "-", "", -1)
|
||||||
|
|
||||||
|
|
||||||
|
t.Log(ss);
|
||||||
|
t.Log(len(ss))
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user