chore: 23407 Use computeHash instead of getHash#23408
Conversation
Signed-off-by: Ivan Malygin <ivan@swirldslabs.com>
|
Merging to
|
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Signed-off-by: Ivan Malygin <ivan@swirldslabs.com>
1030400
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## main #23408 +/- ##
============================================
- Coverage 78.02% 78.01% -0.01%
- Complexity 23404 23405 +1
============================================
Files 2458 2458
Lines 91446 91445 -1
Branches 9707 9707
============================================
- Hits 71353 71345 -8
- Misses 16504 16510 +6
- Partials 3589 3590 +1
... and 12 files with indirect coverage changes 🚀 New features to boost your workflow:
|
| abortAndThrowIfInterrupted( | ||
| initialState::getHash, // calculate hash | ||
| "interrupted while attempting to hash the state"); | ||
| abortAndThrowIfInterrupted(initialState::computeHash, "interrupted while attempting to hash the state"); |
There was a problem hiding this comment.
| abortAndThrowIfInterrupted(initialState::computeHash, "interrupted while attempting to hash the state"); | |
| abortAndThrowIfInterrupted(initialState::computeHash, "interrupted while attempting to compute the hash of the state"); |
| // Mock SwirldStateManager | ||
| stateLifecycleManager = mock(StateLifecycleManager.class); | ||
| when(stateLifecycleManager.getMutableState()).thenReturn(testWorkingState); | ||
| when(stateLifecycleManager.getLatestImmutableState()).thenReturn(testWorkingState); |
There was a problem hiding this comment.
was this intentional? It seems unrelated to the stated purpose of the PR
Description:
This PR replaces usages of
getHashwithcopmuteHashwhere it's appropriateRelated issue(s):
Fixes #23407
Notes for reviewer:
Checklist