Skip to content

Refactors Bank::set_capitalization() #6883

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

Merged
merged 1 commit into from
Jul 8, 2025

Conversation

brooksprumo
Copy link

Problem

Bank::set_capitalization() is strange because it doesn't do what is expected of a set_xx() function. It calculates the new capitalization, then updates it. Why?

More context: #6867 (comment)

Summary of Changes

Have set_capitalization() take a capitalization parameter instead.

@brooksprumo brooksprumo self-assigned this Jul 8, 2025
@brooksprumo brooksprumo force-pushed the capitalization/set branch from bc890f6 to dcbad51 Compare July 8, 2025 18:08
@brooksprumo brooksprumo marked this pull request as ready for review July 8, 2025 18:33
@brooksprumo brooksprumo requested review from HaoranYi and roryharr July 8, 2025 18:33
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.2%. Comparing base (036919a) to head (dcbad51).

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #6883     +/-   ##
=========================================
- Coverage    83.2%    83.2%   -0.1%     
=========================================
  Files         852      852             
  Lines      376952   376951      -1     
=========================================
- Hits       313916   313879     -37     
- Misses      63036    63072     +36     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

@HaoranYi HaoranYi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@brooksprumo brooksprumo merged commit da9045a into anza-xyz:master Jul 8, 2025
41 checks passed
@brooksprumo brooksprumo deleted the capitalization/set branch July 8, 2025 19:52
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.

4 participants