10#include "gtest/gtest.h"
17TEST_F(ScopifyEnumTest, TriggersOnUnscopedEnumDecl) {
18 FileName =
"Test.hpp";
29TEST_F(ScopifyEnumTest, ApplyTestWithPrefix) {
30 std::string Original = R"cpp(
31enum ^E { EV1, EV2, EV3 };
41 std::string Expected = R"cpp(
42enum class E { V1, V2, V3 };
52 FileName = "Test.cpp";
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 };
69 std::string Expected = R"cpp(
70enum class E { V1, V2, V3 };
80 FileName = "Test.cpp";
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 };
97 std::string Expected = R"cpp(
98enum class E { V1, V2, V3 };
108 FileName = "Test.cpp";
109 SCOPED_TRACE(Original);
110 EXPECT_EQ(apply(Original), 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)