| 113 | uint checksPerCycle = 10; |
| 114 | |
| 115 | TestItem* createItem(uint id, uint size) |
| 116 | { |
| 117 | TestItem* ret; |
| 118 | char* data = new char[size]; |
| 119 | uint dataSize = size - sizeof(TestItem); |
| 120 | ret = new (data) TestItem(id, dataSize); |
| 121 | |
| 122 | //Fill in same random pattern |
| 123 | for (uint a = 0; a < dataSize; ++a) |
| 124 | data[sizeof(TestItem) + a] = ( char )(a + id); |
| 125 | |
| 126 | return ret; |
| 127 | } |
| 128 | |
| 129 | ///@todo Add a test where the complete content is deleted again, and make sure the result has a nice structure |
| 130 | ///@todo More consistency and lost-space tests, especially about monster-buckets. Make sure their space is re-claimed |
no outgoing calls
no test coverage detected