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

Function sssp_no_source_param

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

Source from the content-addressed store, hash-verified

227
228 #[test]
229 fn sssp_no_source_param() {
230 let mut csr = CsrIndex::new();
231 csr.add_edge("a", "L", "b").unwrap();
232 csr.compact().expect("no governor, cannot fail");
233
234 let params = AlgoParams::default();
235 let result = run(&csr, &params);
236 assert!(result.is_err());
237 }
238
239 #[test]
240 fn sssp_single_node() {

Callers

nothing calls this directly

Calls 4

add_edgeMethod · 0.80
runFunction · 0.70
expectMethod · 0.45
compactMethod · 0.45

Tested by

no test coverage detected