//! Check that we properly support the major petgraph types. //! //! We only need to know they compile. #![cfg(feature = "node-boxed")] #![allow(unreachable_code, unused_variables)] use dasp_graph::{BoxedNode, NodeData}; use petgraph::visit::GraphBase; #[test] #[should_panic] fn test_graph() { type Graph = petgraph::Graph, (), petgraph::Directed, u32>; type Processor = dasp_graph::Processor; let mut g: Graph = unimplemented!(); let mut p: Processor = unimplemented!(); let n: ::NodeId = unimplemented!(); p.process(&mut g, n); } #[test] #[should_panic] fn test_stable_graph() { type Graph = petgraph::stable_graph::StableGraph, (), petgraph::Directed, u32>; type Processor = dasp_graph::Processor; let mut g: Graph = unimplemented!(); let mut p: Processor = unimplemented!(); let n: ::NodeId = unimplemented!(); p.process(&mut g, n); }