mirror of
https://github.com/xinliangnote/go-gin-api.git
synced 2024-04-21 12:31:46 +00:00
15 lines
212 B
Go
15 lines
212 B
Go
package md5
|
|
|
|
import "testing"
|
|
|
|
func TestEncrypt(t *testing.T) {
|
|
t.Log(New().Encrypt("123456"))
|
|
}
|
|
|
|
func BenchmarkEncrypt(b *testing.B) {
|
|
b.ResetTimer()
|
|
for i := 0; i < b.N; i++ {
|
|
New().Encrypt("123456")
|
|
}
|
|
}
|