Add From and FromGraph tests for FrozenGraph and for GraphTopologyAddition

The new tests are analogous to the existing Clone tests. Currently, only FrozenGraph implements From and FromGraph, but not GraphTopologyAddition, so the tests relying on GraphTopologyAddition are currently unused.
This commit is contained in:
2026-09-25 08:41:10 +02:00
parent d438a4288a
commit a9190f88db
4 changed files with 98 additions and 1 deletions
+2
View File
@@ -255,10 +255,12 @@ impl FromGraph for FrozenGraph {
#[cfg(test)]
mod trait_tests {
use crate::models::AppendGraph;
use super::FrozenGraph;
crate::graph_topology_tests!(FrozenGraph);
crate::graph_topology_clone_tests!(FrozenGraph);
crate::graph_topology_from_graph_tests!(FrozenGraph, AppendGraph);
}
#[cfg(test)]