1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-12-18 23:47:38 +02:00
crud_generator/internal/postgres/postgres_test.go
Nikitin Aleksandr b7446dc946 новый
2023-09-28 17:45:44 +03:00

23 lines
434 B
Go

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")
}
}