10#include "gtest/gtest.h"
17TEST_F(ScopifyEnumTest, TriggersOnUnscopedEnumDecl) {
29TEST_F(ScopifyEnumTest, ApplyTestWithPrefix) {
30 std::string Original = R"cpp(
31enum ^E { EV1, EV2, EV3 };
42enum class E { V1, V2, V3 };
53 SCOPED_TRACE(Original);
54 EXPECT_EQ(apply(Original),
Expected);
57TEST_F(ScopifyEnumTest, ApplyTestWithPrefixAndUnderscore) {
58 std::string Original = R
"cpp(
59enum ^E { E_V1, E_V2, E_V3 };
70enum class E { V1, V2, V3 };
81 SCOPED_TRACE(Original);
82 EXPECT_EQ(apply(Original),
Expected);
85TEST_F(ScopifyEnumTest, ApplyTestWithoutPrefix) {
86 std::string Original = R
"cpp(
87enum ^E { V1, V2, V3 };
98enum class E { V1, V2, V3 };
109 SCOPED_TRACE(Original);
110 EXPECT_EQ(apply(Original),
Expected);
std::vector< const char * > Expected
#define TWEAK_TEST(TweakID)
#define EXPECT_UNAVAILABLE(MarkedCode)
FIXME: Skip testing on windows temporarily due to the different escaping code mode.
TEST_F(BackgroundIndexTest, NoCrashOnErrorFile)