MCPcopy Create free account
hub / github.com/ElementsProject/elements / NewDB

Method NewDB

src/leveldb/table/table_test.cc:356–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354
355 private:
356 void NewDB() {
357 std::string name = test::TmpDir() + "/table_testdb";
358
359 Options options;
360 options.comparator = comparator_;
361 Status status = DestroyDB(name, options);
362 ASSERT_TRUE(status.ok()) << status.ToString();
363
364 options.create_if_missing = true;
365 options.error_if_exists = true;
366 options.write_buffer_size = 10000; // Something small to force merging
367 status = DB::Open(options, name, &db_);
368 ASSERT_TRUE(status.ok()) << status.ToString();
369 }
370
371 const Comparator* const comparator_;
372 DB* db_;

Callers

nothing calls this directly

Calls 3

TmpDirFunction · 0.85
DestroyDBFunction · 0.85
ToStringMethod · 0.45

Tested by

no test coverage detected