-
Notifications
You must be signed in to change notification settings - Fork 375
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
feat(stdlibs): Fuzz for String #1809
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1809 +/- ##
==========================================
+ Coverage 44.86% 47.55% +2.69%
==========================================
Files 459 388 -71
Lines 67625 61279 -6346
==========================================
- Hits 30341 29144 -1197
+ Misses 34743 29695 -5048
+ Partials 2541 2440 -101 ☔ View full report in Codecov by Sentry. |
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.
Looks good 💯
Please check some comments I've left, otherwise it should be good to go
@notJoon |
Resolved it by using type assertion instead of using |
Description
I have implemented basic Fuzz functions in the testing package and a function to apply fuzzing to string data.
To transform string data, I used genetic algorithms. Additionally, I implemented a Uniform distribution to generate random values and then used the central limit theorem to approximate a normal distribution, thereby enabling the creation of random booleans in the random file.
In this PR, only the string type is handled. I plan to support other types in the future.