()
| 455 | |
| 456 | #[test] |
| 457 | fn test_print_batches_empty_batches() { |
| 458 | let batch = one_column_batch(); |
| 459 | let empty_batch = RecordBatch::new_empty(batch.schema()); |
| 460 | |
| 461 | let output = PrintBatchesTest::new() |
| 462 | .with_format(PrintFormat::Table) |
| 463 | .with_batches(vec![empty_batch.clone(), batch, empty_batch]) |
| 464 | .run(); |
| 465 | assert_snapshot!(output, @r" |
| 466 | +---+ |
| 467 | | a | |
| 468 | +---+ |
| 469 | | 1 | |
| 470 | | 2 | |
| 471 | | 3 | |
| 472 | +---+ |
| 473 | "); |
| 474 | } |
| 475 | |
| 476 | #[test] |
| 477 | fn test_print_batches_empty_batch() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…