| 123 | } |
| 124 | |
| 125 | void TestEnv::TearDownQueries() { |
| 126 | for (RuntimeState* runtime_state : runtime_states_) runtime_state->ReleaseResources(); |
| 127 | runtime_states_.clear(); |
| 128 | for (QueryState* query_state : query_states_) { |
| 129 | query_state->ReleaseBackendResourceRefcount(); // Acquired by QueryState::Init() |
| 130 | exec_env_->query_exec_mgr()->ReleaseQueryState(query_state); |
| 131 | } |
| 132 | query_states_.clear(); |
| 133 | } |
| 134 | |
| 135 | int64_t TestEnv::CalculateMemLimit(int max_buffers, int block_size) { |
| 136 | DCHECK_GE(max_buffers, -1); |
no test coverage detected