-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing proto to thrift enum mappings and unit tests for both Enu…
…mMappers Add a suite of tests that will automatically fail if new enum types are added in IDL but the mappers aren't updated. This was done in a few ways: - For enums that have mappers both directions, we roundtrip all thrift values and assert that they're equal. - For enums that are identical across thrift/proto, we generate a mapping based on the value names and assert that the mapper matches it. - For enums that aren't identical, we explicitly assert that our mapping contains all values.
- Loading branch information
Showing
3 changed files
with
391 additions
and
15 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
Oops, something went wrong.