-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PathVisitor: add hybrid test for access/set/get for thrift container …
…under hybrid node Summary: # Overview Using new defined test struct, adding test case for accessing with path visitor with the case of thrift path terminating at hybrid node Of the overall test cases listed below, this covers the combo of 2b x 3c,3d,3e D66525279 Update test struct definitions for comprehensive coverage of hybrid node access patterns for all visitors: a. Thrift path terminating at HybridNode (annotated member hybridMapOfI32ToStruct) b. Thrift path terminating at Thrift container (list, map, set, struct field in ChildStruct) under HybridNode c. Thrift path terminating at leaf primitive under HybridNode (primitive leaves under ChildStruct: leafEnum, optionalI32, childMap/<key>, structMap/<key>/<field>, listOfStruct<key>/<field>) d. [Existing UTs already cover] paths that terminate in COW leaf, COW nodes of various TCs Path Visitor UTs to cover following operations on access patterns in #2 above: a. modifyPath b. removePath c. Set d. Get e. Access (folly::dynamic) ref: https://fburl.com/gdoc/46krq4xp # Fix Originally, the serializeWrapper assumes TC to be of type structure. This diff removes that and passes TC type down from visitTyped method. Differential Revision: D67038112 fbshipit-source-id: f06ba71e6145b7a27c2139db09fd22bf0e961e0a
- Loading branch information
1 parent
5cabb73
commit 69a3bc7
Showing
3 changed files
with
87 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters