#include "PathMapping.h"
#include "llvm/Support/JSON.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <optional>
#include <string>
namespace clang {
namespace clangd {
namespace {
ElementsAre;
MATCHER_P2(Mapping, ClientPath, ServerPath, "") { … }
bool failedParse(llvm::StringRef RawMappings) { … }
TEST(ParsePathMappingTests, WindowsPath) { … }
TEST(ParsePathMappingTests, UnixPath) { … }
TEST(ParsePathMappingTests, ImproperFormat) { … }
TEST(ParsePathMappingTests, ParsesMultiple) { … }
bool mapsProperly(llvm::StringRef Orig, llvm::StringRef Expected,
llvm::StringRef RawMappings, PathMapping::Direction Dir) { … }
TEST(DoPathMappingTests, PreservesOriginal) { … }
TEST(DoPathMappingTests, UsesFirstMatch) { … }
TEST(DoPathMappingTests, IgnoresSubstrings) { … }
TEST(DoPathMappingTests, MapsOutgoingPaths) { … }
TEST(DoPathMappingTests, OnlyMapFileUris) { … }
TEST(DoPathMappingTests, RespectsCaseSensitivity) { … }
TEST(DoPathMappingTests, MapsWindowsPaths) { … }
TEST(DoPathMappingTests, MapsWindowsUnixInterop) { … }
TEST(ApplyPathMappingTests, PreservesOriginalParams) { … }
TEST(ApplyPathMappingTests, MapsAllMatchingPaths) { … }
TEST(ApplyPathMappingTests, MapsOutbound) { … }
TEST(ApplyPathMappingTests, MapsKeys) { … }
}
}
}