Lines Matching refs:TestCheck
122 class TestCheck : public ClangTidyCheck { class
124 TestCheck(ClangTidyContext *Context) : ClangTidyCheck("test", Context) {} in TestCheck() function in clang::tidy::test::__anon8f50a2a20111::TestCheck
173 TestCheck TestCheck(&Context); in TEST() local
174 CHECK_ERROR(TestCheck.getLocal("Opt"), MissingOptionError, in TEST()
176 EXPECT_EQ(TestCheck.getLocal("Opt", "Unknown"), "Unknown"); in TEST()
202 TestCheck TestCheck(&Context); in TEST() local
207 CHECK_VAL(TestCheck.getIntLocal("IntExpected1"), 1); in TEST()
208 CHECK_VAL(TestCheck.getIntGlobal("GlobalIntExpected1"), 1); in TEST()
209 CHECK_ERROR_INT(TestCheck.getIntLocal("IntExpected2"), in TEST()
212 CHECK_ERROR_INT(TestCheck.getIntLocal("IntExpected3"), in TEST()
215 CHECK_ERROR_INT(TestCheck.getIntGlobal("GlobalIntExpected2"), in TEST()
218 ASSERT_EQ(TestCheck.getIntLocal("DefaultedIntInvalid", 1), 1); in TEST()
219 ASSERT_EQ(TestCheck.getIntGlobal("GlobalIntInvalid", 1), 1); in TEST()
221 CHECK_VAL(TestCheck.getIntLocal<bool>("BoolITrueValue"), true); in TEST()
222 CHECK_VAL(TestCheck.getIntLocal<bool>("BoolIFalseValue"), false); in TEST()
223 CHECK_VAL(TestCheck.getIntLocal<bool>("BoolTrueValue"), true); in TEST()
224 CHECK_VAL(TestCheck.getIntLocal<bool>("BoolFalseValue"), false); in TEST()
225 CHECK_ERROR_INT(TestCheck.getIntLocal<bool>("BoolUnparseable"), in TEST()
228 CHECK_ERROR_INT(TestCheck.getIntLocal<bool>("BoolCaseMismatch"), in TEST()
251 TestCheck TestCheck(&Context); in TEST() local
256 CHECK_VAL(TestCheck.getIntLocal<Colours>("Valid"), Colours::Red); in TEST()
257 CHECK_VAL(TestCheck.getIntGlobal<Colours>("GlobalValid"), Colours::Violet); in TEST()
260 TestCheck.getIntLocal<Colours>("ValidWrongCase", /*IgnoreCase*/ true), in TEST()
262 CHECK_VAL(TestCheck.getIntGlobal<Colours>("GlobalValidWrongCase", in TEST()
265 CHECK_ERROR_ENUM(TestCheck.getIntLocal<Colours>("Invalid"), in TEST()
268 CHECK_ERROR_ENUM(TestCheck.getIntLocal<Colours>("ValidWrongCase"), in TEST()
271 CHECK_ERROR_ENUM(TestCheck.getIntLocal<Colours>("NearMiss"), in TEST()
274 CHECK_ERROR_ENUM(TestCheck.getIntGlobal<Colours>("GlobalInvalid"), in TEST()
277 CHECK_ERROR_ENUM(TestCheck.getIntGlobal<Colours>("GlobalValidWrongCase"), in TEST()
280 CHECK_ERROR_ENUM(TestCheck.getIntGlobal<Colours>("GlobalNearMiss"), in TEST()