Files
go-gin-api/pkg/md5/md5_test.go
T
2021-01-09 20:10:13 +08:00

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")
}
}