Module mock_repos

Module mock_repos 

Source
Expand description

In-memory mock implementations of domain repository traits for unit testing. In-memory mock implementations of domain repository traits for unit testing.

These mocks store data in Vecs and HashMaps, requiring no filesystem access. They implement the domain traits from ito-domain, allowing tests to exercise business logic without touching disk.

Structs§

MockChangeRepository
In-memory change repository backed by Vec<Change> and Vec<ChangeSummary>.
MockModuleRepository
In-memory module repository.
MockTaskRepository
In-memory task repository that returns pre-configured task parse results.

Functions§

make_change
Create a minimal Change with sensible defaults for testing.
make_change_summary
Create a minimal ChangeSummary for testing.
make_change_with_progress
Create a Change with a specific module and task progress.
make_module
Create a minimal Module for testing.
make_tasks_result
Create a minimal TasksParseResult with given progress.