mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2024-12-16 21:52:42 +02:00
28 lines
587 B
Go
28 lines
587 B
Go
package logic
|
|
|
|
import (
|
|
"github.com/ManyakRus/crud_generator/internal/config"
|
|
ConfigMain "github.com/ManyakRus/starter/config_main"
|
|
"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: =''")
|
|
}
|
|
}
|