summaryrefslogtreecommitdiffstats
path: root/src/test/CppTests
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2020-06-26 15:02:38 +0200
committerChristoph Schlosser <christophschlosser@users.noreply.github.com>2020-06-26 15:09:49 +0200
commit3e68f18e2e10d90bd094707141c943146482f68b (patch)
tree28e78a5ca625812e3241cb1917c3f34473fc3061 /src/test/CppTests
parent42a085fbda8e742595cf5b543ac4f8202c03fb7d (diff)
downloaddoxdocgen-3e68f18e2e10d90bd094707141c943146482f68b.tar.gz
Add option to filter keywords
Diffstat (limited to 'src/test/CppTests')
-rw-r--r--src/test/CppTests/Config.test.ts8
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);
+ });
+
});