proxygen
|
#include <folly/json.h>
#include <folly/json_patch.h>
#include <folly/json_pointer.h>
#include <folly/portability/GMock.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Classes | |
class | JsonPatchTest |
Typedefs | |
using | err_code = folly::json_patch::parse_error_code |
using | op_code = folly::json_patch::patch_operation_code |
Functions | |
TEST_F (JsonPatchTest, ValidPatch) | |
TEST_F (JsonPatchTest, InvalidPatches) | |
Definition at line 27 of file json_patch_test.cpp.
Definition at line 28 of file json_patch_test.cpp.
TEST_F | ( | JsonPatchTest | , |
ValidPatch | |||
) |
Definition at line 32 of file json_patch_test.cpp.
References folly::json_patch::add, folly::json_patch::copy, EXPECT_EQ, folly::json_patch::move, folly::none, parse(), folly::parseJson(), folly::json_patch::remove, folly::json_patch::replace, and folly::json_patch::test.
TEST_F | ( | JsonPatchTest | , |
InvalidPatches | |||
) |
Definition at line 73 of file json_patch_test.cpp.
References folly::pushmi::operators::error(), EXPECT_EQ, folly::json_patch::invalid_shape, folly::json_patch::malformed_from_attr, folly::json_patch::malformed_op, folly::json_patch::malformed_path_attr, folly::json_patch::missing_from_attr, folly::json_patch::missing_op, folly::json_patch::missing_path_attr, folly::json_patch::missing_value_attr, object, folly::json_patch::overlapping_pointers, folly::parseJson(), and folly::json_patch::unknown_op.