-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for expected objects to roundtrip test
Add optional support to test the deserialized bytes against an expected static object. Uses a macro to concisely list modules that contain an `expected()` function that returns the expected `Request` or `Response` object. Existing tests could have expected objects added to improve the error reporting in case of test failure. Tests from the `proto::message` module have been moved to `tests/roundtrip` because they were simply round-trip tests with an additional check against an expected object. Signed-off-by: Ross Williams <[email protected]>
- Loading branch information
1 parent
6339e03
commit 47f40e3
Showing
17 changed files
with
358 additions
and
470 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.