-
Notifications
You must be signed in to change notification settings - Fork 108
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
Create a scan_block
function to use across scanning tasks
#7994
Conversation
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 really good, it simplifies a lot of things and clarifies what is really needed and what can be left behind.
It is nice to see that you added the function into the test module first, i think we should move the "production code" from there after #7989 merges into the scan.rs
file.
I made a few optional suggestions and comments, well done!
Co-authored-by: Alfredo Garcia <[email protected]>
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.
This seems good enough to merge, we can do more tests and move code around later?
Motivation
Close #7947.
PR Author Checklist
For significant changes:
If a checkbox isn't relevant to the PR, mark it as done.
Solution
I wrapped the original scanning function so it:
Testing
I updated two existing tests. Two more use the original scanning function, but they're better off with that one.
Review
Reviewer Checklist
Check before approving the PR:
PR blockers can be dealt with in new tickets or PRs.
And check the PR Author checklist is complete.