-
-
Notifications
You must be signed in to change notification settings - Fork 897
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(internet): improve ipv4 method #2992
base: next
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for fakerjs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #2992 +/- ##
==========================================
- Coverage 99.97% 99.96% -0.01%
==========================================
Files 2776 2776
Lines 226338 226380 +42
Branches 944 944
==========================================
+ Hits 226285 226307 +22
- Misses 53 73 +20
|
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.
I honestly have a hard time understanding the implementation details, as I my only experience with bit manipulation is reading enum "flags" from an integer. I'm very happy for the test scenarios you provided.
Improves the ipv4 generation options by adding parameters to configure the ip range to generate.
cidrBlock
: Declares the explicit cidr range for the ip to generate in e.g.192.168.42.0/24
. Defaults to0.0.0.0/0
.network
: Alias for well known cidr-blocks such asloopback
. Defaults toany
.Preview: internet#ipv4
Supersedes #2460