-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 missing tests reported by SimpleCov #1241
Conversation
@@ -70,8 +68,6 @@ def random_complex_type | |||
rb_hash | |||
when :array | |||
rb_array | |||
else | |||
rb_integer | |||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By reading the code, I noticed that the code will never pass in the else
statements, therefore I believe we should just delete the statements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those else
statements give a bit more flexibility to quickly edit the constants in the class. But I wasn't sure if that's worth not getting 100% test coverage. Thanks for clarifying that!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, the code is basically working with the values inside the SIMPLE_TYPES
and COMPLEX_TYPES
arrays and as we can see, integer
isn't declared.
* Add some tests * Add more tests * Remove unnecessary else statements * Add faker unique generator missing test * Add more unique generator tests * Update changelog.md
This PR is for issue #1233 created by @vbrazo
Current Coverage
was: 98.86% | is: 99.18%