-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
indexers : add test cases for initConsistentUtreexoState and handle e…
…dge condition This commit improves initConsistentUtreexoState by: 1. Adding test cases for edge condition (e.g., tipHeight < 0, tipHash == nil). 2. Implementing explicit checks for invalid states: - Return early if tipHeight < 0. - Return an error if tipHash is nil. 3. Adding wrapper functions in indexers_test.go for reusable test chain setups. These changes improve robustness, edge case handling, and test environment reusability.
- Loading branch information
Showing
3 changed files
with
216 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters