MB-23263: Refactor defragmentor memory test 63/76963/5
authorolivermd <oliver.downard@couchbase.com>
Tue, 18 Apr 2017 16:45:20 +0000 (17:45 +0100)
committerDave Rigby <daver@couchbase.com>
Wed, 19 Apr 2017 14:40:59 +0000 (14:40 +0000)
commit663d0762b438cf730f103757f05b67a26055b160
treed81ced26f423c65e5264ad3c9ddea480391ed8ac
parent9e811ea889ba56f0730c81f2d2d722f9ea9900cd
MB-23263: Refactor defragmentor memory test

This patch moves the processes of inserting documents in to a vbucket
and fragmented said vbucket in to seperate helper methods as these will
be used in future patches.

Change-Id: I41cc0936e39a026621ff0fc06f3b398fed71b7ce
Reviewed-on: http://review.couchbase.org/76963
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
tests/module_tests/defragmenter_test.cc
tests/module_tests/defragmenter_test.h