Updated test cases documentation
@@ -34,6 +34,7 @@
|
|||||||
* [t00033](./test_cases/t00033.md) - Nested template instantiation dependency test case
|
* [t00033](./test_cases/t00033.md) - Nested template instantiation dependency test case
|
||||||
* [t00034](./test_cases/t00034.md) - Template metaprogramming type function test case
|
* [t00034](./test_cases/t00034.md) - Template metaprogramming type function test case
|
||||||
* [t00035](./test_cases/t00035.md) - PlantUML class diagram layout hints test case
|
* [t00035](./test_cases/t00035.md) - PlantUML class diagram layout hints test case
|
||||||
|
* [t00036](./test_cases/t00036.md) - Class diagram with namespaces generated as packages
|
||||||
## Sequence diagrams
|
## Sequence diagrams
|
||||||
* [t20001](./test_cases/t20001.md) - Basic sequence diagram test case
|
* [t20001](./test_cases/t20001.md) - Basic sequence diagram test case
|
||||||
* [t20002](./test_cases/t20002.md) - Free function sequence diagram test case
|
* [t20002](./test_cases/t20002.md) - Free function sequence diagram test case
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
57
docs/test_cases/t00036.md
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
# t00036 - Class diagram with namespaces generated as packages
|
||||||
|
## Config
|
||||||
|
```yaml
|
||||||
|
compilation_database_dir: ..
|
||||||
|
output_directory: puml
|
||||||
|
diagrams:
|
||||||
|
t00036_class:
|
||||||
|
type: class
|
||||||
|
generate_packages: true
|
||||||
|
glob:
|
||||||
|
- ../../tests/t00036/t00036.cc
|
||||||
|
using_namespace:
|
||||||
|
- clanguml::t00036
|
||||||
|
include:
|
||||||
|
namespaces:
|
||||||
|
- clanguml::t00036
|
||||||
|
```
|
||||||
|
## Source code
|
||||||
|
File t00036.cc
|
||||||
|
```cpp
|
||||||
|
namespace clanguml {
|
||||||
|
namespace t00036 {
|
||||||
|
|
||||||
|
namespace ns1 {
|
||||||
|
|
||||||
|
enum class E { blue, yellow };
|
||||||
|
|
||||||
|
namespace ns11 {
|
||||||
|
|
||||||
|
template <typename T> struct A {
|
||||||
|
T a;
|
||||||
|
};
|
||||||
|
|
||||||
|
namespace ns111 {
|
||||||
|
|
||||||
|
struct B {
|
||||||
|
A<int> a_int;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace ns2 {
|
||||||
|
namespace ns22 {
|
||||||
|
|
||||||
|
struct C;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace t00036
|
||||||
|
} // namespace clanguml
|
||||||
|
|
||||||
|
```
|
||||||
|
## Generated UML diagrams
|
||||||
|

|
||||||
BIN
docs/test_cases/t00036_class.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
@@ -102,6 +102,9 @@ test_cases:
|
|||||||
- name: t00035
|
- name: t00035
|
||||||
title: PlantUML class diagram layout hints test case
|
title: PlantUML class diagram layout hints test case
|
||||||
description:
|
description:
|
||||||
|
- name: t00036
|
||||||
|
title: Class diagram with namespaces generated as packages
|
||||||
|
description:
|
||||||
Sequence diagrams:
|
Sequence diagrams:
|
||||||
- name: t20001
|
- name: t20001
|
||||||
title: Basic sequence diagram test case
|
title: Basic sequence diagram test case
|
||||||
|
|||||||