proxygen
|
Go to the source code of this file.
Functions | |
TEST (Json, Unicode) | |
TEST (Json, Parse) | |
TEST (Json, ParseTrailingComma) | |
TEST (Json, BoolConversion) | |
TEST (Json, JavascriptSafe) | |
TEST (Json, Produce) | |
TEST (Json, JsonEscape) | |
TEST (Json, JsonNonAsciiEncoding) | |
TEST (Json, UTF8Retention) | |
TEST (Json, UTF8EncodeNonAsciiRetention) | |
TEST (Json, UTF8Validation) | |
TEST (Json, ParseNonStringKeys) | |
TEST (Json, ParseDoubleFallback) | |
TEST (Json, ParseNumbersAsStrings) | |
TEST (Json, SortKeys) | |
TEST (Json, PrintTo) | |
TEST (Json, RecursionLimit) | |
TEST (Json, ExtraEscapes) | |
TEST (Json, CharsToUnicodeEscape) | |
TEST | ( | Json | , |
Unicode | |||
) |
Definition at line 28 of file JsonTest.cpp.
References EXPECT_EQ, folly::parseJson(), and val.
Referenced by TEST().
TEST | ( | Json | , |
Parse | |||
) |
Definition at line 40 of file JsonTest.cpp.
References EXPECT_EQ, EXPECT_THROW, EXPECT_TRUE, object, folly::parseJson(), folly::size(), folly::toJson(), and value.
TEST | ( | Json | , |
ParseTrailingComma | |||
) |
Definition at line 125 of file JsonTest.cpp.
References folly::json::serialization_opts::allow_trailing_comma, EXPECT_EQ, EXPECT_THROW, object, folly::pushmi::operators::on, and folly::parseJson().
TEST | ( | Json | , |
BoolConversion | |||
) |
TEST | ( | Json | , |
JavascriptSafe | |||
) |
Definition at line 151 of file JsonTest.cpp.
References EXPECT_ANY_THROW, EXPECT_EQ, int64_t, folly::json::serialization_opts::javascript_safe, folly::json::serialize(), and folly::toJson().
TEST | ( | Json | , |
Produce | |||
) |
Definition at line 164 of file JsonTest.cpp.
References folly::json::serialization_opts::allow_nan_inf, EXPECT_EQ, EXPECT_THROW, object, folly::parseJson(), folly::json::serialize(), folly::toJson(), and value.
TEST | ( | Json | , |
JsonEscape | |||
) |
Definition at line 181 of file JsonTest.cpp.
References folly::json::serialization_opts::encode_non_ascii, EXPECT_EQ, i, s, folly::json::serialize(), string, TEST(), and folly::json::serialization_opts::validate_utf8.
TEST | ( | Json | , |
JsonNonAsciiEncoding | |||
) |
Definition at line 235 of file JsonTest.cpp.
References folly::json::serialization_opts::encode_non_ascii, EXPECT_ANY_THROW, EXPECT_EQ, and folly::json::serialize().
TEST | ( | Json | , |
UTF8Retention | |||
) |
Definition at line 305 of file JsonTest.cpp.
References folly::dynamic::asString(), EXPECT_EQ, gmock_output_test::output, folly::parseJson(), string, and folly::toJson().
TEST | ( | Json | , |
UTF8EncodeNonAsciiRetention | |||
) |
Definition at line 321 of file JsonTest.cpp.
References folly::dynamic::asString(), folly::json::serialization_opts::encode_non_ascii, EXPECT_ANY_THROW, EXPECT_EQ, gmock_output_test::output, folly::parseJson(), folly::json::serialize(), and string.
TEST | ( | Json | , |
UTF8Validation | |||
) |
Definition at line 340 of file JsonTest.cpp.
References folly::json::serialization_opts::encode_non_ascii, EXPECT_ANY_THROW, EXPECT_EQ, folly::json::serialize(), folly::json::serialization_opts::skip_invalid_utf8, and folly::json::serialization_opts::validate_utf8.
TEST | ( | Json | , |
ParseNonStringKeys | |||
) |
Definition at line 380 of file JsonTest.cpp.
References folly::json::serialization_opts::allow_non_string_keys, folly::test::begin(), EXPECT_EQ, EXPECT_THROW, folly::gen::first, folly::parseJson(), and val.
TEST | ( | Json | , |
ParseDoubleFallback | |||
) |
Definition at line 405 of file JsonTest.cpp.
References folly::test::begin(), folly::json::serialization_opts::double_fallback, EXPECT_EQ, EXPECT_THROW, max, min, folly::parseJson(), and folly::toJson().
TEST | ( | Json | , |
ParseNumbersAsStrings | |||
) |
Definition at line 471 of file JsonTest.cpp.
References folly::dynamic::asString(), EXPECT_EQ, EXPECT_THROW, number, parse(), folly::json::serialization_opts::parse_numbers_as_strings, folly::parseJson(), and string.
TEST | ( | Json | , |
SortKeys | |||
) |
Definition at line 506 of file JsonTest.cpp.
References a, b, EXPECT_EQ, EXPECT_NE, object, folly::parseJson(), folly::json::serialize(), folly::json::serialization_opts::sort_keys, folly::json::serialization_opts::sort_keys_by, string, and value.
TEST | ( | Json | , |
PrintTo | |||
) |
Definition at line 550 of file JsonTest.cpp.
References EXPECT_EQ, object, testing::internal::PrintTo(), string, and value.
TEST | ( | Json | , |
RecursionLimit | |||
) |
Definition at line 609 of file JsonTest.cpp.
References EXPECT_ANY_THROW, i, folly::parseJson(), folly::json::serialization_opts::recursion_limit, and string.
TEST | ( | Json | , |
ExtraEscapes | |||
) |
Definition at line 625 of file JsonTest.cpp.
References folly::json::buildExtraAsciiToEscapeBitmap(), EXPECT_EQ, folly::json::serialization_opts::extra_ascii_to_escape_bitmap, object, folly::parseJson(), and folly::json::serialize().
TEST | ( | Json | , |
CharsToUnicodeEscape | |||
) |
Definition at line 659 of file JsonTest.cpp.
References folly::json::buildExtraAsciiToEscapeBitmap(), EXPECT_EQ, and uint64_t.