test: add coverage for has_table
parent
0c32cb48c7
commit
bc3560af8c
|
@ -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![
|
||||
|
|
Loading…
Reference in New Issue