整理前后端与测试构建目录并完善配置和安全引导
Security Checks / security (push) Waiting to run

统一 frontend、backend、test、test-log 和 out 目录,更新构建、部署及测试入口;纳入配置管理兼容与首次安全引导修复;排除本机配置、密钥和测试产物。
This commit is contained in:
xuans committed 2026-09-05 19:19:52 +08:00
1 parent 28cd9d3406
commit f60d3b0880
603 files changed
+2351 -660

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
package address
import "testing"
func TestIsValidEmailAddress(t *testing.T) {
type args struct {
str string
}
tests := []struct {
name string
args args
want bool
}{
{
"",
args{"test@qq.com"},
true,
},
{
"",
args{"1000@qq.com"},
true,
},
{
"",
args{"1000@163.com"},
true,
},
{
"",
args{"1000@1631com"},
false,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := IsValidEmailAddress(tt.args.str); got != tt.want {
t.Errorf("IsValidEmailAddress() = %v, want %v", got, tt.want)
}
})
}
}