| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## master #1884 +/- ##
==========================================
+ Coverage 85.91% 85.92% +0.01%
==========================================
Files 379 379
Lines 19778 19793 +15
Branches 3015 3021 +6
==========================================
+ Hits 16993 17008 +15
Misses 2785 2785 ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Describe your change:
Checklist:
Example:UserProfile.js is allowed but userprofile.js,Userprofile.js,user-Profile.js,userProfile.js are not
Summary of changes
I have improved the robustness of isEven and isEvenBitwise by adding strict type validation (throwing TypeError for non-numeric inputs like strings, null, or NaN).
I also updated the test suite to cover these new edge cases and included a property-based test with random values to ensure mathematical consistency across a wide range.
This is my first contribution but I hope that I didn't make any big mistake.