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:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user