llvm/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp

#include "CompileCommands.h"
#include "Config.h"
#include "Headers.h"
#include "SyncAPI.h"
#include "TestFS.h"
#include "TestTU.h"
#include "index/Background.h"
#include "index/BackgroundRebuild.h"
#include "index/MemIndex.h"
#include "clang/Tooling/ArgumentsAdjusters.h"
#include "clang/Tooling/CompilationDatabase.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/ScopedPrinter.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <deque>
#include <thread>

_;
AllOf;
Contains;
ElementsAre;
Not;
Pair;
UnorderedElementsAre;

namespace clang {
namespace clangd {

MATCHER_P(named, N, "") {}
MATCHER_P(qName, N, "") {}
MATCHER(declared, "") {}
MATCHER(defined, "") {}
MATCHER_P(fileURI, F, "") {}
::testing::Matcher<const RefSlab &>
refsAre(std::vector<::testing::Matcher<Ref>> Matchers) {}
// URI cannot be empty since it references keys in the IncludeGraph.
MATCHER(emptyIncludeNode, "") {}

MATCHER(hadErrors, "") {}

MATCHER_P(numReferences, N, "") {}

class MemoryShardStorage : public BackgroundIndexStorage {};

class BackgroundIndexTest : public ::testing::Test {};

TEST_F(BackgroundIndexTest, NoCrashOnErrorFile) {}

TEST_F(BackgroundIndexTest, Config) {}

TEST_F(BackgroundIndexTest, IndexTwoFiles) {}

TEST_F(BackgroundIndexTest, MainFileRefs) {}

TEST_F(BackgroundIndexTest, ShardStorageTest) {}

TEST_F(BackgroundIndexTest, DirectIncludesTest) {}

TEST_F(BackgroundIndexTest, ShardStorageLoad) {}

TEST_F(BackgroundIndexTest, ShardStorageEmptyFile) {}

TEST_F(BackgroundIndexTest, NoDotsInAbsPath) {}

TEST_F(BackgroundIndexTest, UncompilableFiles) {}

TEST_F(BackgroundIndexTest, CmdLineHash) {}

TEST_F(BackgroundIndexTest, Reindex) {}

class BackgroundIndexRebuilderTest : public testing::Test {};

TEST_F(BackgroundIndexRebuilderTest, IndexingTUs) {}

TEST_F(BackgroundIndexRebuilderTest, LoadingShards) {}

TEST(BackgroundQueueTest, Priority) {}

TEST(BackgroundQueueTest, Boost) {}

TEST(BackgroundQueueTest, Duplicates) {}

TEST(BackgroundQueueTest, Progress) {}

TEST(BackgroundIndex, Profile) {}

} // namespace clangd
} // namespace clang