Updated test cases documentation

This commit is contained in:
Bartek Kryza
2022-02-14 23:52:35 +01:00
parent 7a475411eb
commit 1e551ebbff
2 changed files with 62 additions and 0 deletions

62
docs/test_cases/t30007.md Normal file
View File

@@ -0,0 +1,62 @@
# t30007 - Package diagram layout hints test case
## Config
```yaml
compilation_database_dir: ..
output_directory: puml
diagrams:
t30007_package:
type: package
glob:
- ../../tests/t30007/t30007.cc
include:
namespaces:
- clanguml::t30007
using_namespace:
- clanguml::t30007
layout:
C:
- up: 'A::AA'
- left: B
plantuml:
before:
- "' t30007 test package diagram"
```
## Source code
File t30007.cc
```cpp
namespace clanguml {
namespace t30007 {
namespace B {
struct BB {
};
}
/// \uml{note[top] Compare layout with t30006.}
namespace A {
namespace AA {
struct A1 {
B::BB *b;
};
}
}
namespace C {
struct CC {
};
}
/// \uml{note[bottom] Bottom A note.}
namespace A {
namespace AA {
struct A2 {
C::CC *c;
};
}
}
}
}
```
## Generated UML diagrams
![t30007_package](./t30007_package.png "Package diagram layout hints test case")

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB