Initial commit

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-15 13:57:10 +08:00
co-authored by Claude Opus 5
commit 8679200f41
1897 changed files with 257900 additions and 0 deletions
@@ -0,0 +1,22 @@
package sysconfmod
import "testing"
func TestPaymentGuideConfigDefaultsEnabled(t *testing.T) {
found := make(map[VCode]bool)
for _, item := range initData {
code := VCode(item.VCode)
if code != VCodePaymentGuideEnabled && code != VCodePaymentGuideHomeEnabled {
continue
}
if item.GpCode != string(GPCodePopup) || item.Type != CfgTypeBool || item.Value != "true" {
t.Fatalf("unexpected payment guide config %s: group=%s type=%s value=%s", code, item.GpCode, item.Type, item.Value)
}
found[code] = true
}
for _, code := range []VCode{VCodePaymentGuideEnabled, VCodePaymentGuideHomeEnabled} {
if !found[code] {
t.Fatalf("%s config is not initialized", code)
}
}
}