示例#1
0
        public void continue_without_corrupt_bloom_filter(byte version, bool corrupt)
        {
            string ptableFileName = ConstructPTable(version);

            if (corrupt)
            {
                CorruptBloomFilter(PTable.GenBloomFilterFilename(ptableFileName));
            }

            var table = PTable.FromFile(ptableFileName, Constants.PTableInitialReaderCount, Constants.PTableMaxReaderCountDefault, depth, skipIndexVerify: true);

            Assert.AreEqual(!corrupt, table.HasBloomFilter);
        }
示例#2
0
 public void the_output_file_is_deleted()
 {
     Assert.That(File.Exists(_expectedOutputFile), Is.False);
     Assert.That(File.Exists(PTable.GenBloomFilterFilename(_expectedOutputFile)), Is.False);
 }