mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 06:40:26 +08:00
18 lines
353 B
Go
18 lines
353 B
Go
package clients_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/TeaOSLab/EdgeAPI/internal/db/models/clients"
|
|
_ "github.com/go-sql-driver/mysql"
|
|
_ "github.com/iwind/TeaGo/bootstrap"
|
|
)
|
|
|
|
func TestClientAgentIPDAO_CreateIP(t *testing.T) {
|
|
var dao = clients.NewClientAgentIPDAO()
|
|
err := dao.CreateIP(nil, 1, "127.0.0.1", "")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|