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

Moves Bank benches-only ctors in DCOU #34545

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

brooksprumo
Copy link
Contributor

Problem

Bank has constructors that are only called by benches. These should be in a DCOU block.

Summary of Changes

Put 'em in a DCOU block.

@brooksprumo brooksprumo marked this pull request as ready for review December 20, 2023 19:40
Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cc0e5f7) 81.8% compared to head (d85b441) 81.8%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #34545     +/-   ##
=========================================
- Coverage    81.8%    81.8%   -0.1%     
=========================================
  Files         822      822             
  Lines      221540   221540             
=========================================
- Hits       181403   181362     -41     
- Misses      40137    40178     +41     

Copy link
Contributor

@apfitzge apfitzge left a comment

Choose a reason for hiding this comment

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

mentioned another that i think should be moved in comment. also new_with_paths_for_tests?

pub fn new_for_benches(genesis_config: &GenesisConfig) -> Self {
Self::new_with_paths_for_benches(genesis_config, Vec::new())
}

/// Intended for use by tests only.
/// create new bank with the given configs.
pub fn new_with_runtime_config_for_tests(
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess it doesn't fit the title, but shouldn't new_with_runtime_config_for_tests also be either test or dcou?

@brooksprumo
Copy link
Contributor Author

mentioned another that i think should be moved in comment. also new_with_paths_for_tests?

Oh absolutely yes. Unfortunately it's not that straightforward... Here's what needs to merge first.
#34549

Copy link
Contributor

@apfitzge apfitzge left a comment

Choose a reason for hiding this comment

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

lgtm - thanks for the justification on not moving the other fns yet

@brooksprumo brooksprumo merged commit d3cde6c into solana-labs:master Dec 20, 2023
34 checks passed
@brooksprumo brooksprumo deleted the ctor/bank/benches branch December 20, 2023 21:22
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