mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 06:40:26 +08:00
21 lines
395 B
Go
21 lines
395 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"
|
|
)
|
|
|
|
func TestIPLibraryFileDAO_GenerateIPLibrary(t *testing.T) {
|
|
dbs.NotifyReady()
|
|
|
|
var tx *dbs.Tx
|
|
err := models.SharedIPLibraryFileDAO.GenerateIPLibrary(tx, 4)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|