This large refactor allows future re-use of the existing tests for `FrozenGraph`, which does not implement `GraphTopologyAddition`, but instead has to convert from a different graph which does. - Fix tests for `GraphTopologyDeletion` hard-coding Graph instead of using the trait. - Fix some tests silently depending on macro call site uses. - Change `GraphTopologyAddition` tests to use `Default::default` instead of `new`. - Add new tests for `GraphTopology::vertex_map` and `edge_map` that also depend on `GraphTopologyAddition`, removing these dependencies from the existing tests. - Add new test macro `graph_topology_addition_deletion_tests` for tests that need deletion and addition.
12 lines
202 B
Rust
12 lines
202 B
Rust
mod append_graph_tests {
|
|
use grapherity::models::AppendGraph;
|
|
|
|
grapherity::dfs_tests!(AppendGraph);
|
|
}
|
|
|
|
mod graph_tests {
|
|
use grapherity::models::Graph;
|
|
|
|
grapherity::dfs_tests!(Graph);
|
|
}
|