test: add coverage for has_table

pull/24376/head
Edd Robinson 2021-04-01 11:10:11 +01:00 committed by kodiakhq[bot]
parent 0c32cb48c7
commit bc3560af8c
1 changed files with 10 additions and 0 deletions

View File

@ -669,6 +669,16 @@ mod test {
));
}
#[test]
fn has_table() {
let mut chunk = Chunk::new(22);
// Add a new table to the chunk.
chunk.upsert_table("a_table", gen_recordbatch());
assert!(chunk.has_table("a_table"));
assert!(!chunk.has_table("b_table"));
}
#[test]
fn table_names() {
let columns = vec![