-
Notifications
You must be signed in to change notification settings - Fork 346
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
make the rootless code testable #634
Conversation
Codecov Report
@@ Coverage Diff @@
## main #634 +/- ##
==========================================
+ Coverage 69.93% 70.74% +0.81%
==========================================
Files 82 84 +2
Lines 10948 11111 +163
==========================================
+ Hits 7656 7861 +205
+ Misses 3292 3250 -42 |
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. A few minor nits and request for more comments.
@@ -96,6 +97,26 @@ impl<'a> From<&'a Linux> for Rootless<'a> { | |||
} | |||
} | |||
|
|||
#[cfg(not(test))] |
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 is a super cool idea. Can you add some comments for future us on how this is used in the unit tests?
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'm sorry but I couldn't imagine what kind of comments you want 🙇 Please let me more concreate.
Co-authored-by: Eric Fang <github@accounts.unkies.org>
b13f473
to
d20ec86
Compare
💪
Related: #279