1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2025-12-24 00:51:36 +02:00

новый

This commit is contained in:
Nikitin Aleksandr
2023-09-28 17:45:44 +03:00
parent 0eacd63688
commit b7446dc946
763 changed files with 396603 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package postgres
import (
ConfigMain "github.com/ManyakRus/starter/config"
"github.com/ManyakRus/starter/postgres_gorm"
"testing"
)
func TestFillMassTable(t *testing.T) {
ConfigMain.LoadEnv()
postgres_gorm.Connect()
defer postgres_gorm.CloseConnection()
Otvet, err := FillMapTable()
if err != nil {
t.Error("TestFillMassTable() error: ", err)
}
if len(Otvet) == 0 {
t.Error("TestFillMassTable() error: len =0")
}
}