diff options
Diffstat (limited to 'src/test/CppTests')
| -rw-r--r-- | src/test/CppTests/Config.test.ts | 8 |
1 files changed, 8 insertions, 0 deletions
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); + }); + }); |