Single-threaded execution of the TestRandomInternalImpl.
| 2097 | |
| 2098 | // Single-threaded execution of the TestRandomInternalImpl. |
| 2099 | void BufferPoolTest::TestRandomInternalSingle( |
| 2100 | int64_t min_buffer_len, bool multiple_pins) { |
| 2101 | const int MAX_NUM_BUFFERS = 200; |
| 2102 | const int64_t TOTAL_MEM = MAX_NUM_BUFFERS * min_buffer_len; |
| 2103 | MetricGroup tmp_metrics("test-metrics"); |
| 2104 | BufferPool pool(&tmp_metrics, min_buffer_len, TOTAL_MEM, TOTAL_MEM); |
| 2105 | global_reservations_.InitRootTracker(NewProfile(), TOTAL_MEM); |
| 2106 | MemTracker global_tracker(TOTAL_MEM); |
| 2107 | TestRandomInternalImpl( |
| 2108 | &pool, NewFileGroup(), &global_tracker, &rng_, SINGLE_THREADED_TID, multiple_pins); |
| 2109 | global_reservations_.Close(); |
| 2110 | } |
| 2111 | |
| 2112 | // Multi-threaded execution of the TestRandomInternalImpl. |
| 2113 | void BufferPoolTest::TestRandomInternalMulti( |
nothing calls this directly
no test coverage detected