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

//===-- URITests.cpp  ---------------------------------*- C++ -*-----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "Matchers.h"
#include "TestFS.h"
#include "URI.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"

namespace clang {
namespace clangd {

// Force the unittest URI scheme to be linked,
static int LLVM_ATTRIBUTE_UNUSED UnittestSchemeAnchorDest =;

namespace {

AllOf;

MATCHER_P(scheme, S, "") {}
MATCHER_P(authority, A, "") {}
MATCHER_P(body, B, "") {}

std::string createOrDie(llvm::StringRef AbsolutePath,
                        llvm::StringRef Scheme = "file") {}

URI parseOrDie(llvm::StringRef Uri) {}

TEST(PercentEncodingTest, Encode) {}

TEST(PercentEncodingTest, Decode) {}

std::string resolveOrDie(const URI &U, llvm::StringRef HintPath = "") {}

TEST(URITest, Create) {}

TEST(URITest, CreateUNC) {}

TEST(URITest, FailedCreate) {}

TEST(URITest, Parse) {}

TEST(URITest, ParseFailed) {}

TEST(URITest, Resolve) {}

TEST(URITest, ResolveUNC) {}

std::string resolvePathOrDie(llvm::StringRef AbsPath,
                             llvm::StringRef HintPath = "") {}

TEST(URITest, ResolvePath) {}

TEST(URITest, Platform) {}

TEST(URITest, ResolveFailed) {}

} // namespace
} // namespace clangd
} // namespace clang