Skip to content

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

@tareknaser

Description

@tareknaser

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions