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

Function empty_result

nodedb/src/engine/graph/algo/result.rs:285–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283
284 #[test]
285 fn empty_result() {
286 let batch = AlgoResultBatch::new(GraphAlgorithm::PageRank);
287 assert!(batch.is_empty());
288 let rb = batch.to_record_batch().unwrap();
289 assert_eq!(rb.num_rows(), 0);
290 }
291
292 #[test]
293 fn result_to_json() {

Callers

nothing calls this directly

Calls 1

to_record_batchMethod · 0.80

Tested by

no test coverage detected