diff --git a/docs/test_cases.md b/docs/test_cases.md index 37712e62..1f0e4c0d 100644 --- a/docs/test_cases.md +++ b/docs/test_cases.md @@ -42,5 +42,6 @@ * [t30003](./test_cases/t30003.md) - Package deprecated attribute test case * [t30004](./test_cases/t30004.md) - PlantUML package decorators test case * [t30005](./test_cases/t30005.md) - Package namespace alias test case + * [t30006](./test_cases/t30006.md) - Package split namespace test case ## Configuration diagrams * [t90000](./test_cases/t90000.md) - Basic config test diff --git a/docs/test_cases/t00014_class.png b/docs/test_cases/t00014_class.png index 78f984c4..7fd11aae 100644 Binary files a/docs/test_cases/t00014_class.png and b/docs/test_cases/t00014_class.png differ diff --git a/docs/test_cases/t30004.md b/docs/test_cases/t30004.md index 1dbcee6c..a4d84685 100644 --- a/docs/test_cases/t30004.md +++ b/docs/test_cases/t30004.md @@ -48,6 +48,10 @@ namespace DDD { /// \uml{note[top] We skipped DDD.} namespace EEE { } + +/// \uml{note[top] Another CCC note.} +namespace CCC { +} } } } diff --git a/docs/test_cases/t30004_package.png b/docs/test_cases/t30004_package.png index dd8d3a33..661b6253 100644 Binary files a/docs/test_cases/t30004_package.png and b/docs/test_cases/t30004_package.png differ diff --git a/docs/test_cases/t30005_package.png b/docs/test_cases/t30005_package.png index 4fda592d..b10a0efd 100644 Binary files a/docs/test_cases/t30005_package.png and b/docs/test_cases/t30005_package.png differ diff --git a/docs/test_cases/t30006.md b/docs/test_cases/t30006.md new file mode 100644 index 00000000..46d9d432 --- /dev/null +++ b/docs/test_cases/t30006.md @@ -0,0 +1,54 @@ +# t30006 - Package split namespace test case +## Config +```yaml +compilation_database_dir: .. +output_directory: puml +diagrams: + t30006_package: + type: package + glob: + - ../../tests/t30006/t30006.cc + include: + namespaces: + - clanguml::t30006 + using_namespace: + - clanguml::t30006 + plantuml: + before: + - "' t30006 test package diagram" +``` +## Source code +File t30006.cc +```cpp +namespace clanguml { +namespace t30006 { + +namespace B { +struct BB { +}; +} + +/// \uml{note[top] Top A note.} +namespace A { +struct A1 { + B::BB *b; +}; +} + +namespace C { +struct CC { +}; +} + +/// \uml{note[bottom] Bottom A note.} +namespace A { +struct A2 { + C::CC *c; +}; +} + +} +} +``` +## Generated UML diagrams +![t30006_package](./t30006_package.png "Package split namespace test case") diff --git a/docs/test_cases/t30006_package.png b/docs/test_cases/t30006_package.png new file mode 100644 index 00000000..21376db7 Binary files /dev/null and b/docs/test_cases/t30006_package.png differ diff --git a/tests/test_cases.yaml b/tests/test_cases.yaml index 1b4702de..7c3bdf30 100644 --- a/tests/test_cases.yaml +++ b/tests/test_cases.yaml @@ -122,6 +122,9 @@ test_cases: - name: t30005 title: Package namespace alias test case description: + - name: t30006 + title: Package split namespace test case + description: Configuration diagrams: - name: t90000 title: Basic config test