From 81e84be5b897c8cf6a60004b6c6b7cd56296ca9d Mon Sep 17 00:00:00 2001 From: Frank Winklmeier Date: Wed, 4 Dec 2024 23:19:08 +0100 Subject: [PATCH] googletest: add TYPED_TEST macros Add `TYPED_TEST` and `TYPED_TEST_P` macro definitions. --- cfg/googletest.cfg | 2 ++ test/cfg/googletest.cpp | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/cfg/googletest.cfg b/cfg/googletest.cfg index c93862d64f6..36dd8a40669 100644 --- a/cfg/googletest.cfg +++ b/cfg/googletest.cfg @@ -32,6 +32,8 @@ + + diff --git a/test/cfg/googletest.cpp b/test/cfg/googletest.cpp index 44825425e12..eaec730136d 100644 --- a/test/cfg/googletest.cpp +++ b/test/cfg/googletest.cpp @@ -30,6 +30,16 @@ namespace ExampleNamespace { { return (arg == TOLERANCE); } + + // syntaxError when TYPED_TEST is not known + TYPED_TEST (ExampleTypedTest, cppcheck_test) + { + } + + // syntaxError when TYPED_TEST_P is not known + TYPED_TEST_P (ExampleTypedTestP, cppcheck) + { + } } TEST(ASSERT, ASSERT)