Lines Matching defs:root
177 EffectJsonPtr root = EFFECTJsonHelper::CreateObject();
178 ASSERT_NE(root, nullptr);
179 ASSERT_TRUE(root->IsObject());
180 ASSERT_TRUE(root->Put("stringKey", "testString"));
181 ASSERT_TRUE(root->Put("floatKey", 1.23f));
182 ASSERT_TRUE(root->Put("intKey", 123));
187 ASSERT_TRUE(root->Put("arrayKey", intRoot));
189 ASSERT_TRUE(root->HasElement("stringKey"));
190 EffectJsonPtr stringKeyJsonPtr = root->GetElement("stringKey");
202 ASSERT_TRUE(root->HasElement("floatKey"));
203 EffectJsonPtr floatKeyJsonPtr = root->GetElement("floatKey");
211 ASSERT_FALSE(root->HasElement("nonExistKey"));
213 ASSERT_TRUE(root->HasElement("arrayKey"));
214 EffectJsonPtr arrayKeyJsonPtr = root->GetElement("arrayKey");