solana_data_structs/
lib.rs1pub mod flat_graph;
2pub mod flat_graph_single;
3pub mod flat_graph_visitor;
4pub mod flat_graph_visitor_single;
5pub mod graph_node;
6pub mod graph_node_single;
7
8pub use flat_graph::*;
9pub use flat_graph_single::*;
10pub use flat_graph_visitor::*;
11pub use flat_graph_visitor_single::*;
12pub use graph_node::*;
13pub use graph_node_single::*;
14
15pub fn add(left: usize, right: usize) -> usize {
16 left + right
17}
18
19#[cfg(test)]
20mod tests {
21 use super::*;
22
23 #[test]
24 fn it_works() {
25 let result = add(2, 2);
26 assert_eq!(result, 4);
27 }
28}