#include <sys/types.h>
#include "gtest/gtest.h"
#include "db/db_impl.h"
#include "db/filename.h"
#include "db/log_format.h"
#include "db/version_set.h"
#include "leveldb/cache.h"
#include "leveldb/db.h"
#include "leveldb/table.h"
#include "leveldb/write_batch.h"
#include "util/logging.h"
#include "util/testutil.h"
namespace leveldb {
static const int kValueSize = …;
class CorruptionTest : public testing::Test { … };
TEST_F(CorruptionTest, Recovery) { … }
TEST_F(CorruptionTest, RecoverWriteError) { … }
TEST_F(CorruptionTest, NewFileErrorDuringWrite) { … }
TEST_F(CorruptionTest, TableFile) { … }
TEST_F(CorruptionTest, TableFileRepair) { … }
TEST_F(CorruptionTest, TableFileIndexData) { … }
TEST_F(CorruptionTest, MissingDescriptor) { … }
TEST_F(CorruptionTest, SequenceNumberRecovery) { … }
TEST_F(CorruptionTest, CorruptedDescriptor) { … }
TEST_F(CorruptionTest, CompactionInputError) { … }
TEST_F(CorruptionTest, CompactionInputErrorParanoid) { … }
TEST_F(CorruptionTest, UnrelatedKeys) { … }
}