PcapReader_metaclass: Refactor open#4661
Closed
antoniovazquezblanco wants to merge 1 commit intosecdev:masterfrom
Closed
PcapReader_metaclass: Refactor open#4661antoniovazquezblanco wants to merge 1 commit intosecdev:masterfrom
antoniovazquezblanco wants to merge 1 commit intosecdev:masterfrom
Conversation
13dda53 to
1b09330
Compare
1b09330 to
4bc91a2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4661 +/- ##
==========================================
- Coverage 81.55% 81.55% -0.01%
==========================================
Files 359 359
Lines 86557 86559 +2
==========================================
- Hits 70592 70589 -3
- Misses 15965 15970 +5
|
Member
|
Hi, thanks for the PR ! |
Contributor
Author
|
Nothing to be sorry about :) My reasoning was that this isolates the two things performed in the function and thus may be easier to read and or maybe perform testing. Please, let me know if there is anything that may improve the idea or if you have some other feedback. Also, feel free to close this PR, as I said in my previous comment, I expected this to not be merged for various reasons. Thanks for your time :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist:
cd test && ./run_testsortox)I was thinking on being able to provide feedback on progress while reading PCAP files. I looked at the code of the reader metaclass an thought it could be refactored to be a little simpler to understand...
This changes introduce a behaviour change so this PR is kind not necessary at all, changes the behaviour and all in order to maybe make the code slightly more readable...
Let me know if this is clearly a no go or if there may be a chance.
Thanks!