timewheel_test.go
452 Bytes
package components
import (
"fmt"
"testing"
"time"
)
func PRINT() {
fmt.Println("12312312312")
}
func TestTimeWheel_Start(t *testing.T) {
TimeOut(1*time.Second, func() {
fmt.Println("12312313123")
})
select {}
}
func TestAesEncipher_Decrypt(t *testing.T) {
aes := AesEncipher{}
encode, err := aes.Encrypt([]byte("123"))
if err != nil {
fmt.Println(err.Error())
return
}
dec, err := aes.Decrypt(encode)
fmt.Printf("%s\n", dec)
}