@@ -84,9 +84,54 @@ final class DynamicFeatureFlagTests: XCTestCase {
8484 // Simulate a moderately large JSON
8585 let jsonString = ( 0 ..< 1000 ) . map {
8686 """
87- " feature_ \( $0) " : {
88- " enabled " : \( $0 % 2 == 0 ) ,
89- " rollout " : " \( $0 % 100 ) "
87+ " feature_ \( $0) " :
88+ {
89+ " createdAt " : " 2025-11-15T10:00:00Z " ,
90+ " updatedAt " : 1640995200000,
91+ " userType " : " premium " ,
92+ " isPremiumUser " : " 1 " ,
93+ " featureToggle " : true,
94+ " maxItems " : " 25 " ,
95+ " discountRate " : " \( $0 % 100 ) " ,
96+ " notificationsEnabled " : " yes " ,
97+ " settings " : {
98+ " darkMode " : " on " ,
99+ " notifications " : {
100+ " email " : \( $0 % 2 == 0 ) ,
101+ " push " : " false "
102+ }
103+ },
104+ " versions " : [1, " 2 " , 3.5],
105+ " flags " : {
106+ " beta_feature " : false,
107+ " new_ui " : " true " ,
108+ " launch-date " : " 2024-01-01 "
109+ },
110+ " nullValue " : null,
111+ " extraField " : {
112+ " createdAt " : " 2025-11-15T10:00:00Z " ,
113+ " updatedAt " : 1640995200000,
114+ " userType " : " premium " ,
115+ " isPremiumUser " : " 1 " ,
116+ " featureToggle " : true,
117+ " maxItems " : " 25 " ,
118+ " discountRate " : " \( $0 % 100 ) " ,
119+ " notificationsEnabled " : " yes " ,
120+ " settings " : {
121+ " darkMode " : " on " ,
122+ " notifications " : {
123+ " email " : \( $0 % 2 == 0 ) ,
124+ " push " : " false "
125+ }
126+ },
127+ " versions " : [1, " 2 " , 3.5],
128+ " flags " : {
129+ " beta_feature " : false,
130+ " new_ui " : " true " ,
131+ " launch-date " : " 2024-01-01 "
132+ },
133+ " nullValue " : null
134+ }
90135 }
91136 """
92137 } . joined ( separator: " , \n " )
0 commit comments