-
Notifications
You must be signed in to change notification settings - Fork 355
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
part of PR 340 moving syscalls into structure #357
part of PR 340 moving syscalls into structure #357
Conversation
Codecov Report
@@ Coverage Diff @@
## main #357 +/- ##
==========================================
- Coverage 68.83% 68.55% -0.28%
==========================================
Files 48 48
Lines 7181 7210 +29
==========================================
Hits 4943 4943
- Misses 2238 2267 +29 |
src/rootfs.rs
Outdated
Some(uknown) => bail!("unknown rootfs_propagation: {}", uknown), | ||
/// Holds information about rootfs | ||
pub struct RootFS { | ||
command: Box<dyn Syscall>, |
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.
Sorry, this s mixed up by my mistake, but let's unify the name to syscall
.
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.
Do you mean the field name from command to syscall?
or something else, please guide.
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.
Let's simply change the name command
to syscall
.
@tommady This PR just uses Syscalls so that mocks can be used, right? |
yes correctly! |
@tommady Thanks for always separating the PR from the rest. It makes it easier for me to review them :) |
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.
LGTM
as requested by separating #340 into small PRs
this one is the second part of moving all system calls into a RootFS structure to make them mockable.
please help review 🙇🏻