#include "db/version_set.h"
#include "gtest/gtest.h"
#include "util/logging.h"
#include "util/testutil.h"
namespace leveldb {
class FindFileTest : public testing::Test { … };
TEST_F(FindFileTest, Empty) { … }
TEST_F(FindFileTest, Single) { … }
TEST_F(FindFileTest, Multiple) { … }
TEST_F(FindFileTest, MultipleNullBoundaries) { … }
TEST_F(FindFileTest, OverlapSequenceChecks) { … }
TEST_F(FindFileTest, OverlappingFiles) { … }
void AddBoundaryInputs(const InternalKeyComparator& icmp,
const std::vector<FileMetaData*>& level_files,
std::vector<FileMetaData*>* compaction_files);
class AddBoundaryInputsTest : public testing::Test { … };
TEST_F(AddBoundaryInputsTest, TestEmptyFileSets) { … }
TEST_F(AddBoundaryInputsTest, TestEmptyLevelFiles) { … }
TEST_F(AddBoundaryInputsTest, TestEmptyCompactionFiles) { … }
TEST_F(AddBoundaryInputsTest, TestNoBoundaryFiles) { … }
TEST_F(AddBoundaryInputsTest, TestOneBoundaryFiles) { … }
TEST_F(AddBoundaryInputsTest, TestTwoBoundaryFiles) { … }
TEST_F(AddBoundaryInputsTest, TestDisjoinFilePointers) { … }
}