#include "TestFS.h"
#include "TestIndex.h"
#include "index/Index.h"
#include "index/SymbolID.h"
#include "index/dex/Dex.h"
#include "index/dex/Iterator.h"
#include "index/dex/Token.h"
#include "index/dex/Trigram.h"
#include "llvm/Support/ScopedPrinter.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <string>
#include <vector>
AnyOf;
ElementsAre;
IsEmpty;
UnorderedElementsAre;
namespace clang {
namespace clangd {
namespace dex {
namespace {
std::vector<DocID> consumeIDs(Iterator &It) { … }
TEST(DexIterators, DocumentIterator) { … }
TEST(DexIterators, AndTwoLists) { … }
TEST(DexIterators, AndThreeLists) { … }
TEST(DexIterators, AndEmpty) { … }
TEST(DexIterators, OrTwoLists) { … }
TEST(DexIterators, OrThreeLists) { … }
TEST(DexIterators, QueryTree) { … }
TEST(DexIterators, StringRepresentation) { … }
TEST(DexIterators, Limit) { … }
TEST(DexIterators, True) { … }
TEST(DexIterators, Boost) { … }
TEST(DexIterators, Optimizations) { … }
::testing::Matcher<std::vector<Token>>
tokensAre(std::initializer_list<std::string> Strings, Token::Kind Kind) { … }
::testing::Matcher<std::vector<Token>>
trigramsAre(std::initializer_list<std::string> Trigrams) { … }
std::vector<Token> identifierTrigramTokens(llvm::StringRef S) { … }
TEST(DexTrigrams, IdentifierTrigrams) { … }
TEST(DexTrigrams, QueryTrigrams) { … }
TEST(DexSearchTokens, SymbolPath) { … }
TEST(Dex, Lookup) { … }
TEST(Dex, FuzzyFind) { … }
TEST(DexTest, DexLimitedNumMatches) { … }
TEST(DexTest, FuzzyMatch) { … }
TEST(DexTest, ShortQuery) { … }
TEST(DexTest, MatchQualifiedNamesWithoutSpecificScope) { … }
TEST(DexTest, MatchQualifiedNamesWithGlobalScope) { … }
TEST(DexTest, MatchQualifiedNamesWithOneScope) { … }
TEST(DexTest, MatchQualifiedNamesWithMultipleScopes) { … }
TEST(DexTest, NoMatchNestedScopes) { … }
TEST(DexTest, WildcardScope) { … }
TEST(DexTest, IgnoreCases) { … }
TEST(DexTest, UnknownPostingList) { … }
TEST(DexTest, Lookup) { … }
TEST(DexTest, SymbolIndexOptionsFilter) { … }
TEST(DexTest, ProximityPathsBoosting) { … }
TEST(DexTests, Refs) { … }
TEST(DexTests, Relations) { … }
TEST(DexIndex, IndexedFiles) { … }
TEST(DexTest, PreferredTypesBoosting) { … }
TEST(DexTest, TemplateSpecialization) { … }
}
}
}
}