Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Invariant for ResourceIndex::update_one() Consistency #88

Open
tareknaser opened this issue Sep 3, 2024 · 0 comments
Open

Test Invariant for ResourceIndex::update_one() Consistency #88

tareknaser opened this issue Sep 3, 2024 · 0 comments
Assignees

Comments

@tareknaser
Copy link
Collaborator

Description:

We should have tests for ResourceIndex::update_one() function (added in #85) to ensure that any sequence of update_one calls results in the same output as running update_all on the entire directory.

The process would involve starting with an empty directory, randomly generating an update (creation, modification, or deletion if applicable), applying update_one, and then building a new index from the current directory state. The results from both should be consistent. Property-based testing could also be explored for this case.

Relevant conversation: #85 (comment)

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

No branches or pull requests

1 participant