From 3e68f18e2e10d90bd094707141c943146482f68b Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Fri, 26 Jun 2020 15:02:38 +0200 Subject: Add option to filter keywords --- src/test/CppTests/Config.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/test/CppTests/Config.test.ts') diff --git a/src/test/CppTests/Config.test.ts b/src/test/CppTests/Config.test.ts index bfccf89..1769414 100644 --- a/src/test/CppTests/Config.test.ts +++ b/src/test/CppTests/Config.test.ts @@ -211,4 +211,12 @@ suite("C++ - Configuration Tests", () => { // tslint:enable:no-trailing-whitespace }); + test("Macro define in funtion", () => { + testSetup.cfg = new Config(); + testSetup.cfg.Generic.filteredKeywords = ["MOCKABLE"]; + // tslint:disable-next-line:max-line-length + const result = testSetup.SetLine("MOCKABLE void processNetworkStatusReset( const common_n::NetworkCommands_s *networkstatus );").GetResult(); + assert.equal("/**\n * @brief \n * \n * @param networkstatus \n */", result); + }); + }); -- cgit v1.2.3