You've already forked crud_generator
mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2025-12-24 00:51:36 +02:00
новый
This commit is contained in:
22
internal/postgres/postgres_test.go
Normal file
22
internal/postgres/postgres_test.go
Normal 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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user