test(swift-sdk): assert transaction decoder error cases#3993
test(swift-sdk): assert transaction decoder error cases#3993thepastaclaw wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Review complete (commit f0b9a25) |
There was a problem hiding this comment.
Code Review
Test-only PR that removes a tautological double-reversal assertion and tightens two error-path tests to match specific PlatformWalletError cases (.deserialization and .invalidParameter). All four reviewers independently converged on no in-scope findings; the assertions correctly correspond to the enum in PlatformWalletResult.swift and the documented TransactionDecoder.decode behavior. No consensus-critical or FFI-boundary concerns.
Note: GitHub does not allow me to approve my own PR, so this is posted as a COMMENT while preserving the verified clean review.
Source: reviewers: opus (general), claude-sonnet-5 (general), gpt-5.5[high] (general, failed_or_unparseable), opus (ffi-engineer), claude-sonnet-5 (ffi-engineer), gpt-5.5[high] (ffi-engineer, failed_or_unparseable); verifier: opus; specialists: ffi-engineer
Summary
testTxidDisplayHexMatchesExplorerOrderPlatformWalletErrorcases for malformed/trailing transaction bytes and empty inputValidation
git diff --checkbash build_ios.sh --target mac --profile devbuiltDashSDKFFI.xcframeworkfor macOS, then failed the script follow-up iOS Simulator app build because this invocation only produced a macOS libraryswift test --filter TransactionDecoderTests/testMalformedBytesThrowDeserializationpassedswift test --filter TransactionDecoderTests/testEmptyInputThrowsInvalidParameterpassedswift test --filter TransactionDecoderTestsstill fails 4 decode happy-path tests withdeserialization("IO error")using the freshly built FFI slice; the two changed error-path tests passAddresses CodeRabbit feedback on #3981.