mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			352 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			352 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package clients_test
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/TeaOSLab/EdgeAPI/internal/db/models/clients"
 | 
						|
	_ "github.com/go-sql-driver/mysql"
 | 
						|
	_ "github.com/iwind/TeaGo/bootstrap"
 | 
						|
	"testing"
 | 
						|
)
 | 
						|
 | 
						|
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)
 | 
						|
	}
 | 
						|
}
 |