Lines Matching refs:jsongen
451 std::string jsongen; in ParseAndGenerateTextTest() local
452 auto result = GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in ParseAndGenerateTextTest()
455 if (jsongen != jsonfile) { in ParseAndGenerateTextTest()
456 printf("%s----------------\n%s", jsongen.c_str(), jsonfile.c_str()); in ParseAndGenerateTextTest()
908 std::string jsongen; in FuzzTest2() local
910 auto result = GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in FuzzTest2()
913 if (jsongen != json) { in FuzzTest2()
916 size_t len = std::min(json.length(), jsongen.length()); in FuzzTest2()
918 if (json[i] != jsongen[i]) { in FuzzTest2()
923 static_cast<int>(i), jsongen[i], json[i]); in FuzzTest2()
1073 std::string jsongen; in UnicodeTest() local
1075 auto result = GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in UnicodeTest()
1077 TEST_EQ(jsongen, in UnicodeTest()
1090 std::string jsongen; in UnicodeTestAllowNonUTF8() local
1092 auto result = GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in UnicodeTestAllowNonUTF8()
1094 TEST_EQ(jsongen, in UnicodeTestAllowNonUTF8()
1109 std::string jsongen; in UnicodeTestGenerateTextFailsOnNonUTF8() local
1113 auto result = GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in UnicodeTestGenerateTextFailsOnNonUTF8()
1262 std::string jsongen; in UnknownFieldsTest() local
1264 auto result = GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in UnknownFieldsTest()
1266 TEST_EQ(jsongen == "{str: \"test\",i: 10}", true); in UnknownFieldsTest()