1.4.5.2
This commit is contained in:
17
EdgeAPI/internal/db/models/log_dao_test.go
Normal file
17
EdgeAPI/internal/db/models/log_dao_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
"github.com/iwind/TeaGo/dbs"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestLogDAO_SumLogsSize(t *testing.T) {
|
||||
dbs.NotifyReady()
|
||||
|
||||
size, err := SharedLogDAO.SumLogsSize()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log("size:", size)
|
||||
}
|
||||
Reference in New Issue
Block a user