MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / test_topological_sort_single_node

Function test_topological_sort_single_node

src/ccsr/src/client.rs:996–1005  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 5

svFunction · 0.85
build_graphFunction · 0.85
topological_sortFunction · 0.85
unwrapMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected