Test/indexer mod coverage - #152
Merged
valoryyaa-byte merged 4 commits intoJul 28, 2026
Merged
Conversation
…rkey address_scval() had no direct coverage of either address-kind branch, nor of the error path when a strkey is malformed for the branch it's routed into.
The hi/lo reconstruction in scval_to_json() was only exercised with a small positive I128 and no U128 case at all. Add a U128 value that depends on the hi half, and an I128 edge case (hi < 0, lo's high bit set) to pin the two's-complement combination of the halves.
scval_to_json() recurses on both ScMap and ScVec, but nothing pinned a map with a vec-valued field or a vec of maps, so a regression in either recursive branch (e.g. accidentally flattening a nested vec, or losing struct field names inside an array) wouldn't be caught.
build_invoke_envelope() converts the method name into an ScSymbol via try_into(), mapping failure to IndexError::Xdr. Nothing exercised that path, so a future change to error handling there (e.g. an unwrap creeping in) could turn a bad method name into a panic instead of a normal error.
|
@jhaydeeee-web Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Closes #37
Closes #38
Closes #39
Closes #40
Summary
What was implemented: