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

Function statistics_empty_graph

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

Source from the content-addressed store, hash-verified

228
229 #[test]
230 fn statistics_empty_graph() {
231 let csr = CsrIndex::new();
232 let stats = csr.compute_statistics().unwrap();
233 assert_eq!(stats.node_count, 0);
234 assert_eq!(stats.edge_count, 0);
235 assert_eq!(stats.label_count, 0);
236 }
237
238 #[test]
239 fn statistics_basic() {

Callers

nothing calls this directly

Calls 1

compute_statisticsMethod · 0.80

Tested by

no test coverage detected