Complete Unit Test for package utils

This commit is contained in:
hantmac
2019-08-18 19:07:59 +08:00
parent 98470b87e3
commit 0fe20c07f4
3 changed files with 135 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package utils
import (
. "github.com/smartystreets/goconvey/convey"
"testing"
)
func TestEncryptPassword(t *testing.T) {
var passwd = "test"
Convey("Test EncryptPassword", t, func() {
res := EncryptPassword(passwd)
t.Log(res)
})
}