()
| 994 | |
| 995 | #[mz_ore::test] |
| 996 | fn test_topological_sort_single_node() { |
| 997 | // Single node with no dependencies |
| 998 | let a = sv("a", 1); |
| 999 | let graph = build_graph(&[(a.clone(), None)]); |
| 1000 | |
| 1001 | let ordered = topological_sort(&graph).unwrap(); |
| 1002 | |
| 1003 | assert_eq!(ordered.len(), 1); |
| 1004 | assert!(ordered.contains_key(&a)); |
| 1005 | } |
| 1006 | |
| 1007 | #[mz_ore::test] |
| 1008 | fn test_topological_sort_linear_chain() { |
nothing calls this directly
no test coverage detected