2023-09-28 16:45:44 +02:00
|
|
|
package logic
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/ManyakRus/crud_generator/internal/config"
|
2023-12-27 13:28:11 +02:00
|
|
|
ConfigMain "github.com/ManyakRus/starter/config_main"
|
2023-09-28 16:45:44 +02:00
|
|
|
"github.com/ManyakRus/starter/micro"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestStartFillAll(t *testing.T) {
|
|
|
|
ConfigMain.LoadEnv()
|
|
|
|
config.FillSettings()
|
|
|
|
|
|
|
|
dir := micro.ProgramDir()
|
|
|
|
FileName := dir + "test" + micro.SeparatorFile() + "test_start.xgml"
|
|
|
|
StartFillAll(FileName)
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestFindRepositoryName(t *testing.T) {
|
|
|
|
ConfigMain.LoadEnv()
|
|
|
|
config.FillSettings()
|
|
|
|
|
|
|
|
Otvet := FindRepositoryName()
|
|
|
|
if Otvet == "" {
|
|
|
|
t.Error("TestFindRepositoryName() error: =''")
|
|
|
|
}
|
|
|
|
}
|