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) } } }