test: err.rs code stability test#807
Open
Gbotemi-ojo wants to merge 1 commit into
Open
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Freezes all 93 client-facing error code discriminants in
contracts/predictify-hybrid/src/err.rswith a dedicated stability test suite.Changes
err_stability.rs(new test)total_variant_count()asserts exactly 93 variants exist, catching accidental insertions/deletions that would shift discriminants.err.rs(bug fixes)ReplayedOverride = 442(conflicted withReplayedOverride = 526).ForceResolveReplayedandForceResolveReasonEmpty.InsufficientStorageRent→OperationWouldExceedBudgetindescription().OperationWouldExceedBudgetandForceResolveAlreadyUsedto bothdescription()andcode().Related fixes
storage.rs,market_creation_validation_tests.rs:InsufficientStorageRent→InsufficientStorageRentBudget.Verification
rustfmtclean on all touched files.cargo testcannot run due to 245 pre-existing compilation errors in other modules (unrelated to this change).