MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / sssp_missing_source

Function sssp_missing_source

nodedb/src/engine/graph/algo/sssp.rs:203–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201
202 #[test]
203 fn sssp_missing_source() {
204 let csr = CsrIndex::new();
205 let params = AlgoParams {
206 source_node: Some("nonexistent".into()),
207 ..Default::default()
208 };
209 let result = run(&csr, &params);
210 // Empty graph returns empty batch (not error) since node_count is 0.
211 assert!(result.unwrap().is_empty());
212 }
213
214 #[test]
215 fn sssp_missing_source_in_nonempty_graph() {

Callers

nothing calls this directly

Calls 1

runFunction · 0.70

Tested by

no test coverage detected