#include "absl/debugging/internal/demangle_rust.h"
#include <cstddef>
#include <string>
#include "gtest/gtest.h"
#include "absl/base/config.h"
namespace absl {
ABSL_NAMESPACE_BEGIN
namespace debugging_internal {
namespace {
std::string ResultOfDemangling(const char* mangled, size_t buffer_size) { … }
#define EXPECT_DEMANGLING(mangled, plaintext) …
#define EXPECT_DEMANGLING_FAILS(mangled) …
TEST(DemangleRust, EmptyDemangling) { … }
TEST(DemangleRust, FunctionAtCrateLevel) { … }
TEST(DemangleRust, TruncationsOfFunctionAtCrateLevel) { … }
TEST(DemangleRust, VendorSuffixes) { … }
TEST(DemangleRust, UnicodeIdentifiers) { … }
TEST(DemangleRust, FunctionInModule) { … }
TEST(DemangleRust, FunctionInFunction) { … }
TEST(DemangleRust, ClosureInFunction) { … }
TEST(DemangleRust, ClosureNumbering) { … }
TEST(DemangleRust, ClosureNumberOverflowingInt) { … }
TEST(DemangleRust, UnexpectedlyNamedClosure) { … }
TEST(DemangleRust, ItemNestedInsideClosure) { … }
TEST(DemangleRust, Shim) { … }
TEST(DemangleRust, UnknownUppercaseNamespace) { … }
TEST(DemangleRust, NestedUppercaseNamespaces) { … }
TEST(DemangleRust, TraitDefinition) { … }
TEST(DemangleRust, BasicTypeNames) { … }
TEST(DemangleRust, SliceTypes) { … }
TEST(DemangleRust, ImmutableReferenceTypes) { … }
TEST(DemangleRust, MutableReferenceTypes) { … }
TEST(DemangleRust, ConstantRawPointerTypes) { … }
TEST(DemangleRust, MutableRawPointerTypes) { … }
TEST(DemangleRust, TupleLength0) { … }
TEST(DemangleRust, TupleLength1) { … }
TEST(DemangleRust, TupleLength2) { … }
TEST(DemangleRust, TupleLength3) { … }
TEST(DemangleRust, LongerTuplesAbbreviated) { … }
TEST(DemangleRust, PathBackrefToCrate) { … }
TEST(DemangleRust, PathBackrefToNestedPath) { … }
TEST(DemangleRust, PathBackrefAsInstantiatingCrate) { … }
TEST(DemangleRust, TypeBackrefsNestedInTuple) { … }
TEST(DemangleRust, NoInfiniteLoopOnBackrefToTheWhole) { … }
TEST(DemangleRust, NoCrashOnForwardBackref) { … }
TEST(DemangleRust, PathBackrefsDoNotRecurseDuringSilence) { … }
TEST(DemangleRust, TypeBackrefsDoNotRecurseDuringSilence) { … }
TEST(DemangleRust, ConstBackrefsDoNotRecurseDuringSilence) { … }
TEST(DemangleRust, ReturnFromBackrefToInputPosition256) { … }
TEST(DemangleRust, EmptyGenericArgs) { … }
TEST(DemangleRust, OneSimpleTypeInGenericArgs) { … }
TEST(DemangleRust, OneTupleInGenericArgs) { … }
TEST(DemangleRust, OnePathInGenericArgs) { … }
TEST(DemangleRust, LongerGenericArgs) { … }
TEST(DemangleRust, BackrefInGenericArgs) { … }
TEST(DemangleRust, NestedGenericArgs) { … }
TEST(DemangleRust, MonomorphicEntityNestedInsideGeneric) { … }
TEST(DemangleRust, ArrayTypeWithSimpleElementType) { … }
TEST(DemangleRust, ArrayTypeWithComplexElementType) { … }
TEST(DemangleRust, NestedArrayType) { … }
TEST(DemangleRust, BackrefArraySize) { … }
TEST(DemangleRust, ZeroArraySize) { … }
TEST(DemangleRust, SurprisingMinusesInArraySize) { … }
TEST(DemangleRust, NumberAsGenericArg) { … }
TEST(DemangleRust, NumberAsFirstOfTwoGenericArgs) { … }
TEST(DemangleRust, NumberAsSecondOfTwoGenericArgs) { … }
TEST(DemangleRust, NumberPlaceholder) { … }
TEST(DemangleRust, InherentImplWithoutDisambiguator) { … }
TEST(DemangleRust, InherentImplWithDisambiguator) { … }
TEST(DemangleRust, TraitImplWithoutDisambiguator) { … }
TEST(DemangleRust, TraitImplWithDisambiguator) { … }
TEST(DemangleRust, TraitImplWithNonpathSelfType) { … }
TEST(DemangleRust, ThunkType) { … }
TEST(DemangleRust, NontrivialFunctionReturnType) { … }
TEST(DemangleRust, OneParameterType) { … }
TEST(DemangleRust, TwoParameterTypes) { … }
TEST(DemangleRust, ExternC) { … }
TEST(DemangleRust, ExternOther) { … }
TEST(DemangleRust, Unsafe) { … }
TEST(DemangleRust, Binder) { … }
TEST(DemangleRust, AllFnSigFeaturesInOrder) { … }
TEST(DemangleRust, LifetimeInGenericArgs) { … }
TEST(DemangleRust, EmptyDynTrait) { … }
TEST(DemangleRust, SimpleDynTrait) { … }
TEST(DemangleRust, DynTraitWithOneAssociatedType) { … }
TEST(DemangleRust, DynTraitWithTwoAssociatedTypes) { … }
TEST(DemangleRust, DynTraitPlusAutoTrait) { … }
TEST(DemangleRust, DynTraitPlusTwoAutoTraits) { … }
TEST(DemangleRust, HigherRankedDynTrait) { … }
}
}
ABSL_NAMESPACE_END
}