Skip to content

[Storehouse] 001 Part2 - Add payloadless trie test cases#8572

Open
zhangchiqing wants to merge 1 commit into
leo/payloadless-tests-basefrom
leo/payloadless-tests
Open

[Storehouse] 001 Part2 - Add payloadless trie test cases#8572
zhangchiqing wants to merge 1 commit into
leo/payloadless-tests-basefrom
leo/payloadless-tests

Conversation

@zhangchiqing

@zhangchiqing zhangchiqing commented Jun 3, 2026

Copy link
Copy Markdown
Member

This PR adds test cases for payloadless node and trie implementation.

  • Adds equivalence_test.go: asserts the payloadless trie matches the regular mtrie on root hash, leaf hashes, reads, proofs, and register counts across builds, incremental updates, full unallocation, and a random allocate/unallocate walk (with and without pruning).
  • Created trie_test.go, node_test.go, and json_test.go against the simplified payloadless API by referencing the existing tests.

@coderabbitai

coderabbitai Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f2190a90-0979-4ed0-9d51-04fdff316b98

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch leo/payloadless-tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@zhangchiqing zhangchiqing changed the base branch from leo/payloadless-base to leo/payloadless June 3, 2026 17:40
@zhangchiqing zhangchiqing changed the base branch from leo/payloadless to leo/payloadless-tests-base June 3, 2026 17:41
@zhangchiqing zhangchiqing marked this pull request as ready for review June 3, 2026 18:23
@zhangchiqing zhangchiqing requested a review from a team as a code owner June 3, 2026 18:23
@zhangchiqing zhangchiqing force-pushed the leo/payloadless-tests branch from 23d9779 to a5b9162 Compare June 4, 2026 21:21
@zhangchiqing zhangchiqing changed the title Add payloadless trie test cases [Storehouse] Spec 001.1 Add payloadless trie test cases Jun 8, 2026
@zhangchiqing zhangchiqing changed the title [Storehouse] Spec 001.1 Add payloadless trie test cases [Storehouse] Spec 001 Part2 Add payloadless trie test cases Jun 8, 2026
@zhangchiqing zhangchiqing changed the title [Storehouse] Spec 001 Part2 Add payloadless trie test cases [Storehouse] Spec 001 Part2 - Add payloadless trie test cases Jun 8, 2026
@zhangchiqing zhangchiqing changed the title [Storehouse] Spec 001 Part2 - Add payloadless trie test cases [Storehouse] 001 Part2 - Add payloadless trie test cases Jun 8, 2026
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.

1 participant