diff options
| author | Christoph Schlosser <christoph@linux.com> | 2020-06-26 15:02:38 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christophschlosser@users.noreply.github.com> | 2020-06-26 15:09:49 +0200 |
| commit | 3e68f18e2e10d90bd094707141c943146482f68b (patch) | |
| tree | 28e78a5ca625812e3241cb1917c3f34473fc3061 /src/test | |
| parent | 42a085fbda8e742595cf5b543ac4f8202c03fb7d (diff) | |
| download | doxdocgen-3e68f18e2e10d90bd094707141c943146482f68b.tar.gz | |
Add option to filter keywords
Diffstat (limited to 'src/test')
| -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); + }); + }); |