2022-04-29 23:37:18 +08:00
|
|
|
package plugins
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestDeleteLocalFile(t *testing.T) {
|
|
|
|
fmt.Println(DeleteLocalFile("/Volumes/Downloads/dev/upload/2"))
|
|
|
|
}
|
2022-12-06 20:40:19 +08:00
|
|
|
|
|
|
|
func TestSendEmail(t *testing.T) {
|
|
|
|
fmt.Println(sendEmail("smtp.qq.com:465", "111xxx@qq.com", "xxxxxx", "12545xxx@qq.com", "title", "hello", "text", true))
|
|
|
|
}
|
2022-12-07 21:31:33 +08:00
|
|
|
|
|
|
|
func TestPutString(t *testing.T) {
|
|
|
|
PersistenceFilePath = "/Volumes/Downloads/kv.bolt"
|
|
|
|
PutString("test1", "ok1234-new")
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestGetString(t *testing.T) {
|
|
|
|
PersistenceFilePath = "/Volumes/Downloads/kv.bolt"
|
|
|
|
v := GetString("test1")
|
|
|
|
fmt.Println(v)
|
|
|
|
}
|