| 99 | } |
| 100 | |
| 101 | virtual void TearDown() { |
| 102 | ScalarExprEvaluator::Close(build_expr_evals_, nullptr); |
| 103 | ScalarExprEvaluator::Close(probe_expr_evals_, nullptr); |
| 104 | ScalarExpr::Close(build_exprs_); |
| 105 | ScalarExpr::Close(probe_exprs_); |
| 106 | |
| 107 | for (HashTable* hash_table : hash_tables_) hash_table->Close(); |
| 108 | hash_tables_.clear(); |
| 109 | |
| 110 | for (BufferPool::ClientHandle* client : clients_) { |
| 111 | test_env_->exec_env()->buffer_pool()->DeregisterClient(client); |
| 112 | } |
| 113 | clients_.clear(); |
| 114 | |
| 115 | runtime_state_ = nullptr; |
| 116 | test_env_.reset(); |
| 117 | mem_pool_.FreeAll(); |
| 118 | pool_.Clear(); |
| 119 | } |
| 120 | |
| 121 | /// Initialize test_env_ and runtime_state_ with the given page size and capacity |
| 122 | /// for the given number of pages. If test_env_ was already created, then re-creates it. |
nothing calls this directly
no test coverage detected