Skip to content
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

Merged
merged 5 commits into from
Sep 30, 2023
Merged

Tidy up budget enforcement #279

merged 5 commits into from
Sep 30, 2023

Conversation

briansmith
Copy link
Owner

@briansmith briansmith commented Sep 30, 2023

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.

@briansmith briansmith self-assigned this Sep 30, 2023
@briansmith
Copy link
Owner Author

@cpu PTAL. Thanks!

@codecov
Copy link

codecov bot commented Sep 30, 2023

Codecov Report

Merging #279 (895e2cb) into main (93aca11) will increase coverage by 0.07%.
The diff coverage is 86.00%.

@@            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              
Files Coverage Δ
src/budget.rs 100.00% <100.00%> (ø)
src/lib.rs 27.49% <ø> (ø)
src/verify_cert.rs 97.15% <ø> (-0.30%) ⬇️
src/error.rs 11.94% <66.66%> (+5.81%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@cpu cpu left a 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.
@briansmith briansmith merged commit 9199276 into main Sep 30, 2023
212 checks passed
@briansmith briansmith deleted the b/cleanup-budget branch September 30, 2023 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants