1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-12-16 21:52:42 +02:00
crud_generator/internal/postgres/postgres_test.go

24 lines
467 B
Go
Raw Normal View History

2023-09-28 16:45:44 +02:00
package postgres
import (
2024-05-29 13:18:58 +02:00
"github.com/ManyakRus/crud_generator/internal/config"
2023-09-28 16:45:44 +02:00
"github.com/ManyakRus/starter/postgres_gorm"
"testing"
)
func TestFillMassTable(t *testing.T) {
2024-05-29 13:18:58 +02:00
//ConfigMain.LoadEnv()
config.LoadSettingsTxt()
2023-09-28 16:45:44 +02:00
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")
}
}