mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 23:20:26 +08:00
25 lines
543 B
Go
25 lines
543 B
Go
package models_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/TeaOSLab/EdgeAPI/internal/db/models"
|
|
_ "github.com/go-sql-driver/mysql"
|
|
_ "github.com/iwind/TeaGo/bootstrap"
|
|
"github.com/iwind/TeaGo/dbs"
|
|
timeutil "github.com/iwind/TeaGo/utils/time"
|
|
)
|
|
|
|
func TestMetricSumStatDAO_FindNodeSum(t *testing.T) {
|
|
t.Log(models.NewMetricSumStatDAO().FindNodeSum(nil, 46, timeutil.Format("Ymd"), 1, 1))
|
|
}
|
|
|
|
func TestMetricSumStatDAO_Clean(t *testing.T) {
|
|
dbs.NotifyReady()
|
|
|
|
err := models.NewMetricSumStatDAO().Clean(nil)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|