Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unittests for visitor #6

Merged
merged 6 commits into from
Feb 7, 2023
Merged

Conversation

maxhoerstr
Copy link
Collaborator

@maxhoerstr maxhoerstr commented Jan 25, 2023

Finishes a task in #7.

  • Add unit tests for all visitor classes (100% code coverage)
  • Fix little bugs and remove unnecessary code that were discovered while testing

The visitValue() method will never be called in visitParameter, because
the grammar do not contain values in the parameter rule
Due to the grammar description it is possible that the visitor returns
a string as array length.
An error is already printed, but the length was still set
-Add new
-Update existing
- Update existing ones (refactoring)
- Add missing unit tests
The visitJson_object did not do much, so it was merged
with visitStruct_initialization.
@maxhoerstr maxhoerstr requested a review from ptrdtznr January 26, 2023 15:02
@ptrdtznr ptrdtznr merged commit 6486ec0 into main Feb 7, 2023
@ptrdtznr
Copy link
Member

ptrdtznr commented Feb 7, 2023

As internally discussed, makes sense

@maxhoerstr maxhoerstr deleted the feature/add-unittests-for-visitor branch February 7, 2023 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants