mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-10 12:30:24 +08:00
24 lines
430 B
Go
24 lines
430 B
Go
package models
|
|
|
|
import (
|
|
_ "github.com/go-sql-driver/mysql"
|
|
_ "github.com/iwind/TeaGo/bootstrap"
|
|
"testing"
|
|
)
|
|
|
|
func TestAuthorityKeyDAO_UpdateValue(t *testing.T) {
|
|
err := NewAuthorityKeyDAO().UpdateValue(nil, "12345678")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Logf("ok")
|
|
}
|
|
|
|
func TestAuthorityKeyDAO_ReadValue(t *testing.T) {
|
|
value, err := NewAuthorityKeyDAO().ReadValue(nil)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Logf(value)
|
|
}
|