Skip to content

test: cover decode_bounty malformed assignee tuple error path - #1

Open
Markodiba wants to merge 1 commit into
mergemint-mint:mainfrom
Markodiba:test/decode-bounty-malformed-tuple
Open

test: cover decode_bounty malformed assignee tuple error path#1
Markodiba wants to merge 1 commit into
mergemint-mint:mainfrom
Markodiba:test/decode-bounty-malformed-tuple

Conversation

@Markodiba

Copy link
Copy Markdown

Summary

  • Adds a unit test covering the untested if tuple.len() != 2 { return Err(...) } branch in decode_bounty (src/scval.rs:177-182), constructing an assignee tuple with only 1 element and asserting decode_bounty returns an error.

Closes mergemint-mint/mergemint-contracts#489

Validation

  • cargo test scval:: — 1 passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

77. Test decode_bounty's malformed-tuple error path

1 participant