Initialize test_env_ and runtime_state_ with the given page size and capacity for the given number of pages. If test_env_ was already created, then re-creates it.
| 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. |
| 123 | void CreateTestEnv(int64_t min_page_size = 64 * 1024, |
| 124 | int64_t buffer_bytes_limit = 4L * 1024 * 1024 * 1024) { |
| 125 | test_env_.reset(new TestEnv()); |
| 126 | test_env_->SetBufferPoolArgs(min_page_size, buffer_bytes_limit); |
| 127 | ASSERT_OK(test_env_->Init()); |
| 128 | |
| 129 | TQueryOptions query_options; |
| 130 | query_options.__set_default_spillable_buffer_size(min_page_size); |
| 131 | query_options.__set_min_spillable_buffer_size(min_page_size); |
| 132 | query_options.__set_buffer_pool_limit(buffer_bytes_limit); |
| 133 | ASSERT_OK(test_env_->CreateQueryState(0, &query_options, &runtime_state_)); |
| 134 | } |
| 135 | |
| 136 | TupleRow* CreateTupleRow(int32_t val) { |
| 137 | uint8_t* tuple_row_mem = mem_pool_.Allocate(sizeof(int32_t*)); |
nothing calls this directly
no test coverage detected