reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/Support/JSONTest.cpp
  235   ASSERT_TRUE(O);
  237   EXPECT_FALSE(O->getNull("missing"));
  238   EXPECT_FALSE(O->getNull("boolean"));
  239   EXPECT_TRUE(O->getNull("null"));
  241   EXPECT_EQ(O->getNumber("number"), llvm::Optional<double>(2.78));
  242   EXPECT_FALSE(O->getInteger("number"));
  243   EXPECT_EQ(O->getString("string"), llvm::Optional<llvm::StringRef>("json"));
  244   ASSERT_FALSE(O->getObject("missing"));
  245   ASSERT_FALSE(O->getObject("array"));
  246   ASSERT_TRUE(O->getObject("object"));
  247   EXPECT_EQ(*O->getObject("object"), (Object{{"fruit", "banana"}}));
  249   Array *A = O->getArray("array");