Skip to content

Conversation

@bitgopatmcl
Copy link
Contributor

Although it is undefined behavior to define a flatten codec with
overlapping keys, the actual codec needs to handle arbitrary input which
might have them. This commit adds a test for this, and fortunately the
existing code passes.

Although it is undefined behavior to define a `flatten` codec with
overlapping keys, the actual codec needs to handle arbitrary input which
might have them. This commit adds a test for this, and fortunately the
existing code passes.
@bitgopatmcl bitgopatmcl requested a review from a team March 29, 2022 22:54
Copy link
Contributor

@ericcrosson-bitgo ericcrosson-bitgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests for sanity without explicitly defining behavior, :shipit:

@bitgopatmcl bitgopatmcl merged commit 955081d into BitGo:master Mar 30, 2022
@ericcrosson-bitgo ericcrosson-bitgo deleted the overlapping-decode-test branch March 30, 2022 17:16
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.

2 participants