-
Notifications
You must be signed in to change notification settings - Fork 165
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
Tidy up budget enforcement #279
Conversation
@cpu PTAL. Thanks! |
b7decd6
to
bef50e5
Compare
Codecov Report
@@ Coverage Diff @@
## main #279 +/- ##
==========================================
+ Coverage 51.81% 51.88% +0.07%
==========================================
Files 19 20 +1
Lines 4030 4036 +6
==========================================
+ Hits 2088 2094 +6
Misses 1942 1942
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Thanks,
The adjustments look good to me, but I think the packaging tasks that failed in CI are true positives:
error[E0583]: file not found for module `budget`
--> src/lib.rs:44:1
|
44 | mod budget;
| ^^^^^^^^^^^
|
= help: to create the module `budget`, create file "src/budget.rs" or "src/budget/mod.rs"
I believe budget.rs
has to be added to the Cargo.toml
's include
array.
Make it clear that nothing is reaching into the internals of `Budget`. In particular, clarify that the tests are not messing around with the defaults.
bef50e5
to
895e2cb
Compare
These are non-functional changes designed to clarify how the budget is encapsulated, along with some other tidying that I noticed was appropriate during the review of PR #277.
It is best to review this commit-by-commit.