Skip to content

Commit

Permalink
test: add some tests for ProofPlan::get_table_references
Browse files Browse the repository at this point in the history
  • Loading branch information
JayWhite2357 committed Oct 27, 2024
1 parent c7a9839 commit 464f3fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/proof-of-sql/src/sql/proof_plans/filter_exec_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ fn we_can_correctly_fetch_all_the_referenced_columns() {
)
])
);

let ref_tables = provable_ast.get_table_references();

assert_eq!(ref_tables, IndexSet::from_iter([table_ref]));
}

#[test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ fn we_can_correctly_fetch_all_the_referenced_columns() {
),
])
);

let ref_tables = provable_ast.get_table_references();

assert_eq!(ref_tables, IndexSet::from_iter([table_ref]));
}

#[test]
Expand Down

0 comments on commit 464f3fd

Please sign in to comment.