mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-05 03:30:25 +08:00
[系统设置]增加界面设置,可以定制系统名称等
This commit is contained in:
29
internal/uimanager/ui_config_test.go
Normal file
29
internal/uimanager/ui_config_test.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package uimanager
|
||||
|
||||
import (
|
||||
_ "github.com/iwind/TeaGo/bootstrap"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestLoadSecurityConfig(t *testing.T) {
|
||||
for i := 0; i < 10; i++ {
|
||||
before := time.Now()
|
||||
config, err := LoadUIConfig()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(time.Since(before).Seconds()*1000, "ms")
|
||||
t.Logf("%p", config)
|
||||
}
|
||||
}
|
||||
|
||||
func TestLoadUIConfig2(t *testing.T) {
|
||||
for i := 0; i < 10; i++ {
|
||||
config, err := LoadUIConfig()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(config)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user