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

References

unittests/Support/JSONTest.cpp
   24   EXPECT_EQ("true", s(true));
   25   EXPECT_EQ("null", s(nullptr));
   26   EXPECT_EQ("2.5", s(2.5));
   27   EXPECT_EQ(R"("foo")", s("foo"));
   28   EXPECT_EQ("[1,2,3]", s({1, 2, 3}));
   29   EXPECT_EQ(R"({"x":10,"y":20})", s(Object{{"x", 10}, {"y", 20}}));
   35   EXPECT_DEATH(s("\xC0\x80"), "Invalid UTF-8");
   36   EXPECT_DEATH(s(Object{{"\xC0\x80", 0}}), "Invalid UTF-8");
   42   EXPECT_EQ("[[[3]]]", s({{{3}}}));
   43   EXPECT_EQ("[[[]]]", s({{{}}}));
   44   EXPECT_EQ("[[{}]]", s({{Object{}}}));
   45   EXPECT_EQ(R"({"A":{"B":{}}})", s(Object{{"A", Object{{"B", Object{}}}}}));
   47             s(Object{{"A", Object{{"B", Object{{"X", "Y"}}}}}}));
   48   EXPECT_EQ("null", s(llvm::Optional<double>()));
   49   EXPECT_EQ("2.5", s(llvm::Optional<double>(2.5)));
   50   EXPECT_EQ("[[2.5,null]]", s(std::vector<std::vector<llvm::Optional<double>>>{
   58   EXPECT_EQ(R"("Hallo")", s(Alias));
   63   EXPECT_EQ(R"("Hello")", s(Copy));
   68   EXPECT_EQ(R"({"a":1,"b":2,"c":3})", s(Object{{"a", 1}, {"c", 3}, {"b", 2}}));
   69   EXPECT_EQ(R"(["a","c","b"])", s({"a", "c", "b"}));
   70   EXPECT_EQ("3", s(3.0));
   86   EXPECT_EQ(teststring, s(test));
   89             s(Object{{"object keys are\nescaped", true}}));
  317     EXPECT_EQ(T.Str, s(T.Val)) << T.Desc;
  323     EXPECT_EQ(T.Str, s(*Doc)) << T.Desc;