package main import "testing" func TestAboutMessage(t *testing.T) { expected := "Nex\n\nAI Gateway - 统一的大模型 API 网关\n\nhttps://github.com/nex/gateway" if got := aboutMessage(); got != expected { t.Fatalf("aboutMessage() = %q, want %q", got, expected) } } func TestDesktopMetadata(t *testing.T) { if appName != "Nex" { t.Fatalf("appName = %q, want %q", appName, "Nex") } if appTooltip != appName { t.Fatalf("appTooltip = %q, want %q", appTooltip, appName) } if appAboutTitle != "关于 Nex" { t.Fatalf("appAboutTitle = %q, want %q", appAboutTitle, "关于 Nex") } }