aliyunpan/internal/plugins/plugin_util_test.go
2022-12-07 21:31:33 +08:00

26 lines
569 B
Go

package plugins
import (
"fmt"
"testing"
)
func TestDeleteLocalFile(t *testing.T) {
fmt.Println(DeleteLocalFile("/Volumes/Downloads/dev/upload/2"))
}
func TestSendEmail(t *testing.T) {
fmt.Println(sendEmail("smtp.qq.com:465", "111xxx@qq.com", "xxxxxx", "12545xxx@qq.com", "title", "hello", "text", true))
}
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)
}