@ -153,7 +153,7 @@ class CuckooBuilderTest : public testing::Test {
TEST_F ( CuckooBuilderTest , SuccessWithEmptyFile ) {
unique_ptr < WritableFile > writable_file ;
fname = test : : TmpDir ( ) + " /EmptyFile " ;
fname = test : : PerThreadDBPath ( " EmptyFile " ) ;
ASSERT_OK ( env_ - > NewWritableFile ( fname , & writable_file , env_options_ ) ) ;
unique_ptr < WritableFileWriter > file_writer (
new WritableFileWriter ( std : : move ( writable_file ) , EnvOptions ( ) ) ) ;
@ -189,7 +189,7 @@ TEST_F(CuckooBuilderTest, WriteSuccessNoCollisionFullKey) {
uint64_t expected_table_size = GetExpectedTableSize ( keys . size ( ) ) ;
unique_ptr < WritableFile > writable_file ;
fname = test : : TmpDir ( ) + " / NoCollisionFullKey" ;
fname = test : : PerThreadDBPath ( " NoCollisionFullKey " ) ;
ASSERT_OK ( env_ - > NewWritableFile ( fname , & writable_file , env_options_ ) ) ;
unique_ptr < WritableFileWriter > file_writer (
new WritableFileWriter ( std : : move ( writable_file ) , EnvOptions ( ) ) ) ;
@ -237,7 +237,7 @@ TEST_F(CuckooBuilderTest, WriteSuccessWithCollisionFullKey) {
uint64_t expected_table_size = GetExpectedTableSize ( keys . size ( ) ) ;
unique_ptr < WritableFile > writable_file ;
fname = test : : TmpDir ( ) + " / WithCollisionFullKey" ;
fname = test : : PerThreadDBPath ( " WithCollisionFullKey " ) ;
ASSERT_OK ( env_ - > NewWritableFile ( fname , & writable_file , env_options_ ) ) ;
unique_ptr < WritableFileWriter > file_writer (
new WritableFileWriter ( std : : move ( writable_file ) , EnvOptions ( ) ) ) ;
@ -286,7 +286,7 @@ TEST_F(CuckooBuilderTest, WriteSuccessWithCollisionAndCuckooBlock) {
unique_ptr < WritableFile > writable_file ;
uint32_t cuckoo_block_size = 2 ;
fname = test : : TmpDir ( ) + " / WithCollisionFullKey2" ;
fname = test : : PerThreadDBPath ( " WithCollisionFullKey2 " ) ;
ASSERT_OK ( env_ - > NewWritableFile ( fname , & writable_file , env_options_ ) ) ;
unique_ptr < WritableFileWriter > file_writer (
new WritableFileWriter ( std : : move ( writable_file ) , EnvOptions ( ) ) ) ;
@ -339,7 +339,7 @@ TEST_F(CuckooBuilderTest, WithCollisionPathFullKey) {
uint64_t expected_table_size = GetExpectedTableSize ( keys . size ( ) ) ;
unique_ptr < WritableFile > writable_file ;
fname = test : : TmpDir ( ) + " / WithCollisionPathFullKey" ;
fname = test : : PerThreadDBPath ( " WithCollisionPathFullKey " ) ;
ASSERT_OK ( env_ - > NewWritableFile ( fname , & writable_file , env_options_ ) ) ;
unique_ptr < WritableFileWriter > file_writer (
new WritableFileWriter ( std : : move ( writable_file ) , EnvOptions ( ) ) ) ;
@ -389,7 +389,7 @@ TEST_F(CuckooBuilderTest, WithCollisionPathFullKeyAndCuckooBlock) {
uint64_t expected_table_size = GetExpectedTableSize ( keys . size ( ) ) ;
unique_ptr < WritableFile > writable_file ;
fname = test : : TmpDir ( ) + " / WithCollisionPathFullKeyAndCuckooBlock" ;
fname = test : : PerThreadDBPath ( " WithCollisionPathFullKeyAndCuckooBlock " ) ;
ASSERT_OK ( env_ - > NewWritableFile ( fname , & writable_file , env_options_ ) ) ;
unique_ptr < WritableFileWriter > file_writer (
new WritableFileWriter ( std : : move ( writable_file ) , EnvOptions ( ) ) ) ;
@ -432,7 +432,7 @@ TEST_F(CuckooBuilderTest, WriteSuccessNoCollisionUserKey) {
uint64_t expected_table_size = GetExpectedTableSize ( user_keys . size ( ) ) ;
unique_ptr < WritableFile > writable_file ;
fname = test : : TmpDir ( ) + " / NoCollisionUserKey" ;
fname = test : : PerThreadDBPath ( " NoCollisionUserKey " ) ;
ASSERT_OK ( env_ - > NewWritableFile ( fname , & writable_file , env_options_ ) ) ;
unique_ptr < WritableFileWriter > file_writer (
new WritableFileWriter ( std : : move ( writable_file ) , EnvOptions ( ) ) ) ;
@ -476,7 +476,7 @@ TEST_F(CuckooBuilderTest, WriteSuccessWithCollisionUserKey) {
uint64_t expected_table_size = GetExpectedTableSize ( user_keys . size ( ) ) ;
unique_ptr < WritableFile > writable_file ;
fname = test : : TmpDir ( ) + " / WithCollisionUserKey" ;
fname = test : : PerThreadDBPath ( " WithCollisionUserKey " ) ;
ASSERT_OK ( env_ - > NewWritableFile ( fname , & writable_file , env_options_ ) ) ;
unique_ptr < WritableFileWriter > file_writer (
new WritableFileWriter ( std : : move ( writable_file ) , EnvOptions ( ) ) ) ;
@ -522,7 +522,7 @@ TEST_F(CuckooBuilderTest, WithCollisionPathUserKey) {
uint64_t expected_table_size = GetExpectedTableSize ( user_keys . size ( ) ) ;
unique_ptr < WritableFile > writable_file ;
fname = test : : TmpDir ( ) + " / WithCollisionPathUserKey" ;
fname = test : : PerThreadDBPath ( " WithCollisionPathUserKey " ) ;
ASSERT_OK ( env_ - > NewWritableFile ( fname , & writable_file , env_options_ ) ) ;
unique_ptr < WritableFileWriter > file_writer (
new WritableFileWriter ( std : : move ( writable_file ) , EnvOptions ( ) ) ) ;
@ -567,7 +567,7 @@ TEST_F(CuckooBuilderTest, FailWhenCollisionPathTooLong) {
hash_map = std : : move ( hm ) ;
unique_ptr < WritableFile > writable_file ;
fname = test : : TmpDir ( ) + " / WithCollisionPathUserKey" ;
fname = test : : PerThreadDBPath ( " WithCollisionPathUserKey " ) ;
ASSERT_OK ( env_ - > NewWritableFile ( fname , & writable_file , env_options_ ) ) ;
unique_ptr < WritableFileWriter > file_writer (
new WritableFileWriter ( std : : move ( writable_file ) , EnvOptions ( ) ) ) ;
@ -595,7 +595,7 @@ TEST_F(CuckooBuilderTest, FailWhenSameKeyInserted) {
std : : string user_key = " repeatedkey " ;
unique_ptr < WritableFile > writable_file ;
fname = test : : TmpDir ( ) + " / FailWhenSameKeyInserted" ;
fname = test : : PerThreadDBPath ( " FailWhenSameKeyInserted " ) ;
ASSERT_OK ( env_ - > NewWritableFile ( fname , & writable_file , env_options_ ) ) ;
unique_ptr < WritableFileWriter > file_writer (
new WritableFileWriter ( std : : move ( writable_file ) , EnvOptions ( ) ) ) ;