Add ElementMap::reserve to replace ElementMap::expand, update tests

ElementMap tests are now self contained unit tests, without any graph context. The only exception is the repurposed test "reused_slot_returns_old_value", which is not suited for GraphTopologyDeletion, but actually specific for Graph.
This commit is contained in:
2026-08-06 23:06:52 +02:00
parent a7346bd782
commit 59d9c2b8a7
5 changed files with 85 additions and 136 deletions
-12
View File
@@ -1,12 +0,0 @@
mod append_graph_entity_map_tests {
use grapherity::models::AppendGraph;
grapherity::entity_map_tests!(AppendGraph);
}
mod graph_entity_map_tests {
use grapherity::models::Graph;
grapherity::entity_map_tests!(Graph);
grapherity::entity_map_deletion_tests!(Graph);
}