Lines Matching refs:jsongen

584   std::string jsongen;  in JsonDefaultTest()  local
585 auto result = GenerateText(parser, builder.GetBufferPointer(), &jsongen); in JsonDefaultTest()
588 TEST_EQ(std::string::npos != jsongen.find("color: \"Blue\""), true); in JsonDefaultTest()
590 TEST_EQ(std::string::npos != jsongen.find("testf: 3.14159"), true); in JsonDefaultTest()
640 std::string jsongen; in ParseAndGenerateTextTest() local
642 GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in ParseAndGenerateTextTest()
644 TEST_EQ_STR(jsongen.c_str(), jsonfile.c_str()); in ParseAndGenerateTextTest()
1189 std::string jsongen; in FuzzTest2() local
1192 GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in FuzzTest2()
1195 if (jsongen != json) { in FuzzTest2()
1198 size_t len = std::min(json.length(), jsongen.length()); in FuzzTest2()
1200 if (json[i] != jsongen[i]) { in FuzzTest2()
1205 static_cast<int>(i), jsongen[i], json[i]); in FuzzTest2()
1744 std::string jsongen; in UnicodeTest() local
1747 GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in UnicodeTest()
1749 TEST_EQ_STR(jsongen.c_str(), in UnicodeTest()
1764 std::string jsongen; in UnicodeTestAllowNonUTF8() local
1767 GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in UnicodeTestAllowNonUTF8()
1770 jsongen.c_str(), in UnicodeTestAllowNonUTF8()
1787 std::string jsongen; in UnicodeTestGenerateTextFailsOnNonUTF8() local
1793 GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in UnicodeTestGenerateTextFailsOnNonUTF8()
1974 std::string jsongen; in UnknownFieldsTest() local
1977 GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in UnknownFieldsTest()
1979 TEST_EQ_STR(jsongen.c_str(), "{str: \"test\",i: 10}"); in UnknownFieldsTest()