()
| 248 | |
| 249 | #[test] |
| 250 | fn wcc_result_to_record_batch() { |
| 251 | let mut batch = AlgoResultBatch::new(GraphAlgorithm::Wcc); |
| 252 | batch.push_node_i64("n1".into(), 0); |
| 253 | batch.push_node_i64("n2".into(), 0); |
| 254 | batch.push_node_i64("n3".into(), 1); |
| 255 | |
| 256 | let rb = batch.to_record_batch().unwrap(); |
| 257 | assert_eq!(rb.num_rows(), 3); |
| 258 | assert_eq!(rb.schema().field(1).name(), "component_id"); |
| 259 | } |
| 260 | |
| 261 | #[test] |
| 262 | fn louvain_result_three_columns() { |
nothing calls this directly
no test coverage detected