Skip to content

enhance(LargeSmtForest tests): expand LargeSmtForest property test coverage#886

Open
AlexWaker wants to merge 4 commits into0xMiden:nextfrom
AlexWaker:issue879
Open

enhance(LargeSmtForest tests): expand LargeSmtForest property test coverage#886
AlexWaker wants to merge 4 commits into0xMiden:nextfrom
AlexWaker:issue879

Conversation

@AlexWaker
Copy link

@AlexWaker AlexWaker commented Mar 10, 2026

This PR expands the property-based test coverage for LargeSmtForest.

Previously, the forest-level property tests were mostly limited to entries(). This change adds a broader set of reference-model-driven property tests covering core query, mutation, metadata, constructor, and truncation behavior.

The new tests now exercise:

  • query consistency for get(), entries(), and entry_count()
  • selected open() consistency checks against a reference Smt
  • metadata consistency for latest_version(), latest_root(), lineage_roots(), roots(), and root_info()
  • mutation behavior for add_lineage(), update_tree(), and update_forest()
  • failure semantics, including duplicate lineages, bad version transitions, and invalid forest batches
  • constructor behavior when initializing a forest from a pre-populated backend
  • retention and visibility semantics for with_config() and truncate()

In addition, the property test helpers and generators were refactored to make the coverage easier to extend and maintain.

Closes #879.

@AlexWaker AlexWaker changed the title enhance(): xpand LargeSmtForest property test coverage enhance(LargeSmtForest tests): expand LargeSmtForest property test coverage Mar 10, 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.

Improve property tests for LargeSmtForest

1 participant