-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Expose non-io_buf API for fb_parser (#4683)
Expose non-io_buf API for fb_parser This creates an entry-point for the parsing logic operating over a buffer pointer rather than io_buf; previously this was only used for unit testing, but this will, in the future, be used by consumers of the library, e.g. RLClientLib. Added unit tests for this behaviour found a couple of bugs in the implementation of the FB parser as well as FB parser unit test validation logic: * Fix logic issues with detecting presence/absence of feature names and hashes in example data, leading to an access violation crash * Fix issues with properly parsing ExampleCollection buffers, around reporting doneness and advancing when parsing inner MultiExample objects. * Fix tests to include coverage for incoming flatbuffers with/without names/hashes * Fix validation logic to avoid crashing when feature names/hashes are missing
- Loading branch information
Showing
15 changed files
with
703 additions
and
384 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
Oops, something went wrong.