Files
EdgeAPI/internal/db/models/authority_key_dao_test.go
2021-04-13 20:01:21 +08:00

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