| 103 | |
| 104 | private: |
| 105 | void test_pool() |
| 106 | { |
| 107 | acl::dbuf_pool* pool = new acl::dbuf_pool; |
| 108 | test_buf2* buf; |
| 109 | |
| 110 | for (int i = 0; i < max_loop_; i++) |
| 111 | { |
| 112 | for (int j = 0; j < max_count_; j++) |
| 113 | { |
| 114 | buf = new (pool) test_buf2(pool); |
| 115 | delete buf; |
| 116 | } |
| 117 | |
| 118 | pool->dbuf_reset(); |
| 119 | } |
| 120 | |
| 121 | pool->destroy(); |
| 122 | } |
| 123 | |
| 124 | void test_pool2() |
| 125 | { |
nothing calls this directly
no test coverage detected