Commit 5dde9ae4 authored by miloyip's avatar miloyip

Cover MemoryPoolAllocator::Capacity()

parent f51c0141
...@@ -243,6 +243,10 @@ TEST(Document, UserBuffer) { ...@@ -243,6 +243,10 @@ TEST(Document, UserBuffer) {
EXPECT_FALSE(doc.HasParseError()); EXPECT_FALSE(doc.HasParseError());
EXPECT_LE(valueAllocator.Size(), sizeof(valueBuffer)); EXPECT_LE(valueAllocator.Size(), sizeof(valueBuffer));
EXPECT_LE(parseAllocator.Size(), sizeof(parseBuffer)); EXPECT_LE(parseAllocator.Size(), sizeof(parseBuffer));
// Cover MemoryPool::Capacity()
EXPECT_LE(valueAllocator.Size(), valueAllocator.Capacity());
EXPECT_LE(parseAllocator.Size(), parseAllocator.Capacity());
} }
// Issue 226: Value of string type should not point to NULL // Issue 226: Value of string type should not point to NULL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment