C++: slightly tweak KST generator to generate more automatic tests #110
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.
While working on #108 I decided to split out a couple of fixes for the C++ generator in its own PR, because the one of commits are discussional.
The first commit tweaks the generator to generate correct tests for checking
_parent
and_root
for nulls, thus the testnested_types_import
no longer to be manual.The second commit makes tests
switch_manual_enum_invalid
andswitch_manual_enum_invalid_else
automatically generated, similar to the testsenum_invalid
andenum_to_i_invalid
. If you think, that insteadenum_invalid
andenum_to_i_invalid
needs to be fixed, I already implemented such logic in the generator, just say and I'll replace the second commit.