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); }
public void the_output_file_is_deleted() { Assert.That(File.Exists(_expectedOutputFile), Is.False); Assert.That(File.Exists(PTable.GenBloomFilterFilename(_expectedOutputFile)), Is.False); }