engine/i18n with catalogs, plural forms and module catalogs; tools/i18n extract and check; the editor UI, menus, panels and notices in Russian with the author's terms; overflow test and tooltip wrapping; the English log.
29 lines
430 B
Go
29 lines
430 B
Go
//go:build aego_golden
|
|
|
|
package golden
|
|
|
|
import (
|
|
"os"
|
|
"runtime"
|
|
"testing"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
dir, err := os.MkdirTemp("", "aego-config-")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
switch runtime.GOOS {
|
|
case "darwin":
|
|
os.Setenv("HOME", dir)
|
|
case "windows":
|
|
os.Setenv("AppData", dir)
|
|
default:
|
|
os.Setenv("XDG_CONFIG_HOME", dir)
|
|
}
|
|
os.Setenv("AEGO_LANG", "en")
|
|
code := m.Run()
|
|
os.RemoveAll(dir)
|
|
os.Exit(code)
|
|
}
|