Add fault-injection unit tests (coverage part 2/3)#766
Merged
Conversation
55b4a78 to
e1ec1db
Compare
ecd08bc to
ffefb0f
Compare
cf14a57 to
56ba274
Compare
ce10329 to
599c3c8
Compare
Contributor
Author
5940d72 to
8b9dd40
Compare
b98697c to
a7af61a
Compare
Contributor
Author
|
I checked these tests for memory leaks. I discovered two additional ones when running |
8b9dd40 to
422dd65
Compare
Contributor
|
@brawner could it be a fault injection-induced leak in |
422dd65 to
337f9ee
Compare
a7af61a to
81d411c
Compare
68fb9cc to
37cac47
Compare
81d411c to
0446196
Compare
Contributor
Author
|
@hidmic Yes I believe that's correct. It might be harder to address since we need those injected faults for coverage. |
hidmic
approved these changes
Sep 2, 2020
| "string_array_with_quoted_number.yaml" | ||
| }; | ||
|
|
||
| for (auto & filename : filenames) { |
Contributor
Author
There was a problem hiding this comment.
I think const is already deduced by auto since filenames is const.
Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
0446196 to
8ca6f42
Compare
Contributor
Author
|
Rebased onto master after merging #771 |
ahcorde
pushed a commit
that referenced
this pull request
Oct 8, 2020
* Fault injection tests for rcl_yaml Signed-off-by: Stephen Brawner <brawner@gmail.com> * PR Feedback Signed-off-by: Stephen Brawner <brawner@gmail.com> * Pause fault injection Signed-off-by: Stephen Brawner <brawner@gmail.com> * variant_copy Signed-off-by: Stephen Brawner <brawner@gmail.com>
ahcorde
pushed a commit
that referenced
this pull request
Oct 9, 2020
* Fault injection tests for rcl_yaml Signed-off-by: Stephen Brawner <brawner@gmail.com> * PR Feedback Signed-off-by: Stephen Brawner <brawner@gmail.com> * Pause fault injection Signed-off-by: Stephen Brawner <brawner@gmail.com> * variant_copy Signed-off-by: Stephen Brawner <brawner@gmail.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds unit tests to rcl_yaml_param_parser to increase coverage to 95.2%. Since the PR is so long, I'm leaving it in draft for now and will plan to refactor it into a couple of parts for easier review.
Depends on #765
Signed-off-by: Stephen Brawner brawner@gmail.com