llvm/llvm/unittests/ADT/StringRefTest.cpp

//===- llvm/unittest/ADT/StringRefTest.cpp - StringRef unit tests ---------===//
//
// 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 "llvm/ADT/StringRef.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/raw_ostream.h"
#include "gtest/gtest.h"
usingnamespacellvm;

// Check that we can't accidentally assign a temporary std::string to a
// StringRef. (Unfortunately we can't make use of the same thing with
// constructors.)
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;

namespace {
TEST(StringRefTest, Construction) {}

TEST(StringRefTest, Conversion) {}

TEST(StringRefTest, EmptyInitializerList) {}

TEST(StringRefTest, Iteration) {}

TEST(StringRefTest, StringOps) {}

TEST(StringRefTest, Operators) {}

TEST(StringRefTest, Substr) {}

TEST(StringRefTest, Slice) {}

TEST(StringRefTest, Split) {}

TEST(StringRefTest, Split2) {}

TEST(StringRefTest, Trim) {}

TEST(StringRefTest, StartsWith) {}

TEST(StringRefTest, StartsWithInsensitive) {}

TEST(StringRefTest, ConsumeFront) {}

TEST(StringRefTest, ConsumeFrontInsensitive) {}

TEST(StringRefTest, EndsWith) {}

TEST(StringRefTest, EndsWithInsensitive) {}

TEST(StringRefTest, ConsumeBack) {}

TEST(StringRefTest, ConsumeBackInsensitive) {}

TEST(StringRefTest, Find) {}

TEST(StringRefTest, Count) {}

TEST(StringRefTest, EditDistance) {}

TEST(StringRefTest, EditDistanceInsensitive) {}

TEST(StringRefTest, Misc) {}

TEST(StringRefTest, Hashing) {}

struct UnsignedPair {} Unsigned[] =;

struct SignedPair {} Signed[] =;

TEST(StringRefTest, getAsInteger) {}


static const char* BadStrings[] =;


TEST(StringRefTest, getAsUnsignedIntegerBadStrings) {}

struct ConsumeUnsignedPair {} ConsumeUnsigned[] =; // Auto-sensed binary radix, invalid digit.

struct ConsumeSignedPair {} ConsumeSigned[] =;

TEST(StringRefTest, consumeIntegerUnsigned) {}

TEST(StringRefTest, consumeIntegerSigned) {}

struct GetDoubleStrings {} DoubleStrings[] =;

TEST(StringRefTest, getAsDouble) {}

static const char *join_input[] =;
static const char join_result1[] =;
static const char join_result2[] =;
static const char join_result3[] =;

TEST(StringRefTest, joinStrings) {}


TEST(StringRefTest, AllocatorCopy) {}

TEST(StringRefTest, Drop) {}

TEST(StringRefTest, Take) {}

TEST(StringRefTest, FindIf) {}

TEST(StringRefTest, TakeWhileUntil) {}

TEST(StringRefTest, DropWhileUntil) {}

TEST(StringRefTest, StringLiteral) {}

// Check gtest prints StringRef as a string instead of a container of chars.
// The code is in utils/unittest/googletest/internal/custom/gtest-printers.h
TEST(StringRefTest, GTestPrinter) {}

TEST(StringRefTest, LFLineEnding) {}

TEST(StringRefTest, CRLineEnding) {}

TEST(StringRefTest, CRLFLineEnding) {}

TEST(StringRefTest, LFCRLineEnding) {}

static_assert;

} // end anonymous namespace