Lines Matching refs:ASSERT_OK
56 ASSERT_OK(DestroyDB(dbname_, options_)); in TearDown()
298 ASSERT_OK(sst_file_writer.Open(file1)); in TEST_F()
300 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val")); in TEST_F()
322 ASSERT_OK(sst_file_writer.Open(file2)); in TEST_F()
324 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val")); in TEST_F()
340 ASSERT_OK(sst_file_writer.Open(file3)); in TEST_F()
342 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val_overlap")); in TEST_F()
358 ASSERT_OK(sst_file_writer.Open(file4)); in TEST_F()
360 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val_overlap")); in TEST_F()
372 ASSERT_OK(sst_file_writer.Open(file5)); in TEST_F()
374 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val")); in TEST_F()
386 ASSERT_OK(sst_file_writer.Open(file6)); in TEST_F()
401 ASSERT_OK(sst_file_writer.Open(file7)); in TEST_F()
404 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val")); in TEST_F()
408 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val")); in TEST_F()
423 ASSERT_OK(sst_file_writer.Open(file8)); in TEST_F()
458 ASSERT_OK(DeprecatedAddFile({file2})); in TEST_F()
475 ASSERT_OK(Put(Key(k), Key(k) + "_val_new")); in TEST_F()
480 ASSERT_OK(DeprecatedAddFile({file5})); in TEST_F()
487 ASSERT_OK(DeprecatedAddFile({file7})); in TEST_F()
490 ASSERT_OK(DeprecatedAddFile({file8})); in TEST_F()
512 ASSERT_OK(Flush()); in TEST_F()
513 ASSERT_OK(db_->CompactRange(CompactRangeOptions(), nullptr, nullptr)); in TEST_F()
522 ASSERT_OK(Delete(Key(k))); in TEST_F()
529 ASSERT_OK(db_->CompactRange(CompactRangeOptions(), nullptr, nullptr)); in TEST_F()
532 ASSERT_OK(DeprecatedAddFile({file5})); in TEST_F()
607 ASSERT_OK(sst_file_writer.Open(file1)); in TEST_F()
609 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val")); in TEST_F()
624 ASSERT_OK(sst_file_writer.Open(file2)); in TEST_F()
626 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val")); in TEST_F()
642 ASSERT_OK(sst_file_writer.Open(file3)); in TEST_F()
644 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val_overlap")); in TEST_F()
657 ASSERT_OK(sst_file_writer.Open(file4)); in TEST_F()
659 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val_overlap")); in TEST_F()
671 ASSERT_OK(sst_file_writer.Open(file5)); in TEST_F()
673 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val")); in TEST_F()
685 ASSERT_OK(sst_file_writer.Open(file6)); in TEST_F()
686 ASSERT_OK(sst_file_writer.DeleteRange(Key(0), Key(75))); in TEST_F()
687 ASSERT_OK(sst_file_writer.DeleteRange(Key(25), Key(100))); in TEST_F()
701 ASSERT_OK(sst_file_writer.Open(file7)); in TEST_F()
702 ASSERT_OK(sst_file_writer.DeleteRange(Key(99), Key(201))); in TEST_F()
742 ASSERT_OK(db_->GetPropertiesOfAllTables(&props)); in TEST_F()
759 ASSERT_OK(DeprecatedAddFile(file_list2)); in TEST_F()
765 ASSERT_OK(db_->GetPropertiesOfAllTables(&props)); in TEST_F()
781 ASSERT_OK(Put(Key(k), Key(k) + "_val_new")); in TEST_F()
798 ASSERT_OK(Flush()); in TEST_F()
799 ASSERT_OK(db_->CompactRange(CompactRangeOptions(), nullptr, nullptr)); in TEST_F()
804 ASSERT_OK(Delete(Key(k))); in TEST_F()
811 ASSERT_OK(db_->CompactRange(CompactRangeOptions(), nullptr, nullptr)); in TEST_F()
814 ASSERT_OK(DeprecatedAddFile(file_list2)); in TEST_F()
841 ASSERT_OK(sst_file_writer.Open(files[i])); in TEST_F()
843 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val")); in TEST_F()
859 ASSERT_OK(DeprecatedAddFile(files)); in TEST_F()
877 ASSERT_OK(s); in TEST_F()
881 ASSERT_OK(s); in TEST_F()
886 ASSERT_OK(s); in TEST_F()
894 ASSERT_OK(Put("aaa", "bbb")); in TEST_F()
895 ASSERT_OK(Flush()); in TEST_F()
896 ASSERT_OK(Put("aaa", "xxx")); in TEST_F()
897 ASSERT_OK(Flush()); in TEST_F()
903 ASSERT_OK(s); in TEST_F()
921 ASSERT_OK(sst_file_writer.Open(file1)); in TEST_F()
923 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val")); in TEST_F()
935 ASSERT_OK(sst_file_writer.Open(file2)); in TEST_F()
937 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val")); in TEST_F()
947 ASSERT_OK(DeprecatedAddFile({file1})); in TEST_F()
959 ASSERT_OK(DeprecatedAddFile({file2}, false, true)); in TEST_F()
965 ASSERT_OK(sst_file_writer.Open(file3)); in TEST_F()
967 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k) + "_val")); in TEST_F()
980 ASSERT_OK(DeprecatedAddFile({file3}, false, true)); in TEST_F()
1010 ASSERT_OK(sst_file_writer.Open(file_names[file_idx])); in TEST_F()
1013 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k))); in TEST_F()
1090 ASSERT_OK(Flush()); in TEST_F()
1091 ASSERT_OK(db_->CompactRange(CompactRangeOptions(), nullptr, nullptr)); in TEST_F()
1153 ASSERT_OK(s); in TEST_F()
1162 ASSERT_OK(sst_file_writer.Open(file_name)); in TEST_F()
1165 ASSERT_OK(s); in TEST_F()
1169 ASSERT_OK(s); in TEST_F()
1182 ASSERT_OK(s); in TEST_F()
1192 ASSERT_OK(s); in TEST_F()
1240 ASSERT_OK(GenerateAndAddExternalFile(options, {1, 10}, -1, false, false, true, in TEST_P()
1245 ASSERT_OK(GenerateAndAddExternalFile(options, {2, 9}, -1, false, false, true, in TEST_P()
1260 ASSERT_OK(Put(Key(3), Key(3) + "put")); in TEST_P()
1261 ASSERT_OK(Put(Key(8), Key(8) + "put")); in TEST_P()
1264 ASSERT_OK(Flush()); in TEST_P()
1275 ASSERT_OK(GenerateAndAddExternalFile(options, {4, 7}, -1, false, false, true, in TEST_P()
1280 ASSERT_OK(GenerateAndAddExternalFile(options, {9000, 9001}, -1, false, false, in TEST_P()
1308 ASSERT_OK(Put(Key(k), Key(k))); in TEST_F()
1310 ASSERT_OK(Flush()); in TEST_F()
1315 ASSERT_OK(Put(Key(k), Key(k))); in TEST_F()
1317 ASSERT_OK(Flush()); in TEST_F()
1339 ASSERT_OK(db_->CompactRange(CompactRangeOptions(), nullptr, nullptr)); in TEST_F()
1346 ASSERT_OK(GenerateAndAddExternalFile(options, file_keys, 1)); in TEST_F()
1372 ASSERT_OK(iter->status()); in TEST_F()
1391 ASSERT_OK(Put(Key(1), Key(1))); in TEST_F()
1392 ASSERT_OK(Put(Key(9), Key(9))); in TEST_F()
1393 ASSERT_OK(Flush()); in TEST_F()
1395 ASSERT_OK(Put(Key(1), Key(1))); in TEST_F()
1396 ASSERT_OK(Put(Key(9), Key(9))); in TEST_F()
1397 ASSERT_OK(Flush()); in TEST_F()
1399 ASSERT_OK(db_->CompactRange(CompactRangeOptions(), nullptr, nullptr)); in TEST_F()
1400 ASSERT_OK(dbfull()->TEST_WaitForCompact(true)); in TEST_F()
1424 ASSERT_OK(db_->CompactRange(CompactRangeOptions(), nullptr, nullptr)); in TEST_F()
1430 ASSERT_OK(GenerateAndAddExternalFile(options, file_keys, range_id)); in TEST_F()
1443 ASSERT_OK(Put(Key(range_start), Key(range_start))); in TEST_F()
1444 ASSERT_OK(Put(Key(range_end), Key(range_end))); in TEST_F()
1445 ASSERT_OK(Flush()); in TEST_F()
1495 ASSERT_OK(Put(Key(k), Key(k) + "put")); in TEST_F()
1499 ASSERT_OK(Put(Key(k), Key(k) + "put")); in TEST_F()
1502 ASSERT_OK(Flush()); in TEST_F()
1511 ASSERT_OK(GenerateAndAddExternalFile(options, {31, 32, 33, 34}, -1, false, in TEST_F()
1516 ASSERT_OK(GenerateAndAddExternalFile(options, {9000, 9001}, -1, false, false, in TEST_F()
1531 ASSERT_OK(GenerateAndAddExternalFile(options, {1, 15, 19}, -1, false, false, in TEST_F()
1535 ASSERT_OK(GenerateAndAddExternalFile(options, {1000, 1001, 1002}, -1, false, in TEST_F()
1539 ASSERT_OK(GenerateAndAddExternalFile(options, {500, 600, 700}, -1, false, in TEST_F()
1544 ASSERT_OK(GenerateAndAddExternalFile(options, {2, 10}, -1, false, false, true, in TEST_F()
1549 ASSERT_OK(GenerateAndAddExternalFile(options, {3, 9}, -1, false, false, true, in TEST_F()
1561 ASSERT_OK(Put(k, v)); in TEST_F()
1564 ASSERT_OK(Flush()); in TEST_F()
1568 ASSERT_OK(GenerateAndAddExternalFile(options, {650, 651, 652}, -1, false, in TEST_F()
1593 ASSERT_OK(sst_file_writer.Open(file_name)); in TEST_F()
1598 ASSERT_OK(sst_file_writer.Put(Key(k), Key(k))); in TEST_F()
1601 ASSERT_OK(sst_file_writer.Finish(&file_info)); in TEST_F()
1614 ASSERT_OK(DeprecatedAddFile(in_files)); in TEST_F()
1622 ASSERT_OK(DeprecatedAddFile(in_files)); in TEST_F()
1639 ASSERT_OK(GenerateAndAddExternalFile(options, {1, 4}, 1)); // L3 in TEST_F()
1640 ASSERT_OK(GenerateAndAddExternalFile(options, {2, 3}, 2)); // L2 in TEST_F()
1642 ASSERT_OK(GenerateAndAddExternalFile(options, {10, 14}, 3)); // L3 in TEST_F()
1643 ASSERT_OK(GenerateAndAddExternalFile(options, {12, 13}, 4)); // L2 in TEST_F()
1645 ASSERT_OK(GenerateAndAddExternalFile(options, {20, 24}, 5)); // L3 in TEST_F()
1646 ASSERT_OK(GenerateAndAddExternalFile(options, {22, 23}, 6)); // L2 in TEST_F()
1656 ASSERT_OK(dbfull()->SetOptions({{"max_bytes_for_level_base", "1"}})); in TEST_F()
1657 ASSERT_OK(GenerateAndAddExternalFile(options, {15, 16}, 7)); in TEST_F()
1664 ASSERT_OK(db_->CompactRange(cro, nullptr, nullptr)); in TEST_F()
1676 ASSERT_OK(GenerateAndAddExternalFile(options, {1, 10}, 1)); // L3 in TEST_F()
1677 ASSERT_OK(GenerateAndAddExternalFile(options, {2, 9}, 2)); // L2 in TEST_F()
1678 ASSERT_OK(GenerateAndAddExternalFile(options, {3, 8}, 3)); // L1 in TEST_F()
1679 ASSERT_OK(GenerateAndAddExternalFile(options, {4, 7}, 4)); // L0 in TEST_F()
1681 ASSERT_OK(db_->CompactRange(CompactRangeOptions(), nullptr, nullptr)); in TEST_F()
1691 ASSERT_OK(sst_file_writer.Open(file_path)); in TEST_F()
1692 ASSERT_OK(sst_file_writer.Put("A" + suffix, "VAL")); in TEST_F()
1693 ASSERT_OK(sst_file_writer.Put("BB" + suffix, "VAL")); in TEST_F()
1694 ASSERT_OK(sst_file_writer.Put("CC" + suffix, "VAL")); in TEST_F()
1695 ASSERT_OK(sst_file_writer.Put("CXD" + suffix, "VAL")); in TEST_F()
1696 ASSERT_OK(sst_file_writer.Put("CZZZ" + suffix, "VAL")); in TEST_F()
1697 ASSERT_OK(sst_file_writer.Put("ZAAAX" + suffix, "VAL")); in TEST_F()
1699 ASSERT_OK(sst_file_writer.Finish()); in TEST_F()
1700 ASSERT_OK(DeprecatedAddFile({file_path})); in TEST_F()
1723 ASSERT_OK(GenerateAndAddExternalFile(options, {{"bar", "v3"}}, -1, in TEST_F()
1759 ASSERT_OK(Put(entry.first, entry.second)); in TEST_P()
1763 ASSERT_OK(GenerateAndAddExternalFile( in TEST_P()
1785 ASSERT_OK(Put(Key(i), "memtable")); in TEST_P()
1796 ASSERT_OK(GenerateAndAddExternalFile( in TEST_P()
1808 ASSERT_OK(GenerateAndAddExternalFile( in TEST_P()
1821 ASSERT_OK(GenerateAndAddExternalFile( in TEST_P()
1833 ASSERT_OK(GenerateAndAddExternalFile( in TEST_P()
1851 ASSERT_OK(Put(Key(k), "memtable")); in TEST_P()
1861 ASSERT_OK(GenerateAndAddExternalFile( in TEST_P()
1869 ASSERT_OK(GenerateAndAddExternalFile( in TEST_P()
1877 ASSERT_OK(Put(Key(k), "memtable")); in TEST_P()
1885 ASSERT_OK(GenerateAndAddExternalFile( in TEST_P()
1893 ASSERT_OK(GenerateAndAddExternalFile( in TEST_P()
1910 ASSERT_OK(Put(Key(1), "memtable")); in TEST_P()
1911 ASSERT_OK(Put(Key(10), "memtable")); in TEST_P()
1916 ASSERT_OK( in TEST_P()
1920 ASSERT_OK( in TEST_P()
1926 ASSERT_OK(Put(Key(7), "memtable")); in TEST_P()
1927 ASSERT_OK(Put(Key(8), "memtable")); in TEST_P()
1934 ASSERT_OK(Flush()); in TEST_P()
1962 ASSERT_OK(GenerateAndAddExternalFile(options, {5, 6})); in TEST_F()
1966 ASSERT_OK(Put(Key(1), "memtable")); in TEST_F()
1967 ASSERT_OK(Flush()); in TEST_F()
1969 ASSERT_OK(Put(Key(2), "memtable")); in TEST_F()
1970 ASSERT_OK(Flush()); in TEST_F()
1972 ASSERT_OK(Put(Key(3), "memtable")); in TEST_F()
1973 ASSERT_OK(Flush()); in TEST_F()
1975 ASSERT_OK(Put(Key(4), "memtable")); in TEST_F()
1976 ASSERT_OK(Flush()); in TEST_F()
1982 ASSERT_OK(Put(Key(10), "memtable")); in TEST_F()
2021 ASSERT_OK(sst_file_writer->Open(file_path)); in TEST_F()
2026 ASSERT_OK(sst_file_writer->Open(file_path)); in TEST_F()
2041 ASSERT_OK(sfw_default.Open(cf_default_sst)); in TEST_F()
2042 ASSERT_OK(sfw_default.Put("K1", "V1")); in TEST_F()
2043 ASSERT_OK(sfw_default.Put("K2", "V2")); in TEST_F()
2044 ASSERT_OK(sfw_default.Finish()); in TEST_F()
2048 ASSERT_OK(sfw_cf1.Open(cf1_sst)); in TEST_F()
2049 ASSERT_OK(sfw_cf1.Put("K3", "V1")); in TEST_F()
2050 ASSERT_OK(sfw_cf1.Put("K4", "V2")); in TEST_F()
2051 ASSERT_OK(sfw_cf1.Finish()); in TEST_F()
2055 ASSERT_OK(sfw_unknown.Open(unknown_sst)); in TEST_F()
2056 ASSERT_OK(sfw_unknown.Put("K5", "V1")); in TEST_F()
2057 ASSERT_OK(sfw_unknown.Put("K6", "V2")); in TEST_F()
2058 ASSERT_OK(sfw_unknown.Finish()); in TEST_F()
2067 ASSERT_OK(db_->IngestExternalFile(handles_[1], {cf1_sst}, ifo)); in TEST_F()
2074 ASSERT_OK(db_->IngestExternalFile(handles_[0], {cf_default_sst}, ifo)); in TEST_F()
2077 ASSERT_OK(db_->IngestExternalFile(handles_[1], {unknown_sst}, ifo)); in TEST_F()
2079 ASSERT_OK(db_->IngestExternalFile(handles_[2], {unknown_sst}, ifo)); in TEST_F()
2081 ASSERT_OK(db_->IngestExternalFile(handles_[0], {unknown_sst}, ifo)); in TEST_F()
2084 ASSERT_OK(db_->DropColumnFamily(handles_[1])); in TEST_F()
2088 ASSERT_OK(db_->IngestExternalFile(handles_[2], {unknown_sst}, ifo)); in TEST_F()
2109 ASSERT_OK(sst_file_writer.Open(file_path)); in TEST_P()
2111 ASSERT_OK(sst_file_writer.Put(Key(i), Key(i) + "_value")); in TEST_P()
2113 ASSERT_OK(sst_file_writer.Finish()); in TEST_P()
2115 ASSERT_OK(env_->GetFileSize(file_path, &file_size)); in TEST_P()
2140 ASSERT_OK(s); in TEST_P()
2148 ASSERT_OK(s); in TEST_P()
2182 ASSERT_OK(GenerateAndAddExternalFile( in TEST_P()
2194 ASSERT_OK(GenerateAndAddExternalFile( in TEST_P()
2206 ASSERT_OK(GenerateAndAddExternalFile( in TEST_P()
2225 ASSERT_OK(Put(Key(i), Key(i) + "_V1")); in TEST_F()
2232 ASSERT_OK(sst_file_writer.Open(sst_file_path)); in TEST_F()
2234 ASSERT_OK(sst_file_writer.Put(Key(i), Key(i) + "_V2")); in TEST_F()
2236 ASSERT_OK(sst_file_writer.Finish()); in TEST_F()
2240 ASSERT_OK(db_->IngestExternalFile({sst_file_path}, ifo)); in TEST_F()
2261 ASSERT_OK(Put(Key(i), "memtable")); in TEST_P()
2292 ASSERT_OK(Put(Key(i), "memtable")); in TEST_P()
2298 ASSERT_OK(GenerateAndAddExternalFile( in TEST_P()
2332 ASSERT_OK(sst_file_writer.Open(file_path)); in TEST_F()
2333 ASSERT_OK(sst_file_writer.Put("Key1", "Value1")); in TEST_F()
2334 ASSERT_OK(sst_file_writer.Finish()); in TEST_F()
2336 ASSERT_OK( in TEST_F()
2352 ASSERT_OK(sst_file_writer.Open(file_path)); in TEST_F()
2353 ASSERT_OK(sst_file_writer.Put("Key1", "Value1")); in TEST_F()
2354 ASSERT_OK(sst_file_writer.Finish()); in TEST_F()
2356 ASSERT_OK( in TEST_F()
2390 ASSERT_OK(GenerateAndAddExternalFile(options, std::move(random_data))); in TEST_F()
2425 ASSERT_OK(s); in TEST_P()
2470 ASSERT_OK(Put(cf, kv.first, kv.second)); in TEST_P()
2472 ASSERT_OK(Flush(cf)); in TEST_P()
2518 ASSERT_OK(GenerateAndAddExternalFiles(options, column_families, ifos, data, in TEST_P()
2789 ASSERT_OK(dbfull()->Put(WriteOptions(), "1000", "v1")); in TEST_P()
2790 ASSERT_OK(dbfull()->Put(WriteOptions(), "1001", "v1")); in TEST_P()
2791 ASSERT_OK(dbfull()->Put(WriteOptions(), "9999", "v1")); in TEST_P()