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

Function statistics_with_buffer_edges

nodedb-graph/src/csr/statistics.rs:318–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316
317 #[test]
318 fn statistics_with_buffer_edges() {
319 let mut csr = CsrIndex::new();
320 csr.add_edge("a", "KNOWS", "b").unwrap();
321 // Don't compact — edges in buffer.
322 let stats = csr.compute_statistics().unwrap();
323 assert_eq!(stats.edge_count, 1);
324 assert_eq!(stats.label_stats["KNOWS"].edge_count, 1);
325 }
326}

Callers

nothing calls this directly

Calls 2

add_edgeMethod · 0.80
compute_statisticsMethod · 0.80

Tested by

no test coverage detected