Updated test cases documentation
This commit is contained in:
86
docs/test_cases/t00043.md
Normal file
86
docs/test_cases/t00043.md
Normal file
@@ -0,0 +1,86 @@
|
||||
# t00043 - Dependants and dependencies diagram filter test
|
||||
## Config
|
||||
```yaml
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00043_class:
|
||||
type: class
|
||||
generate_packages: true
|
||||
glob:
|
||||
- ../../tests/t00043/t00043.cc
|
||||
using_namespace:
|
||||
- clanguml::t00043
|
||||
include:
|
||||
dependants:
|
||||
- clanguml::t00043::dependants::A
|
||||
dependencies:
|
||||
- clanguml::t00043::dependencies::J
|
||||
relationships:
|
||||
- dependency
|
||||
```
|
||||
## Source code
|
||||
File t00043.cc
|
||||
```cpp
|
||||
namespace clanguml::t00043 {
|
||||
|
||||
namespace dependants {
|
||||
struct A {
|
||||
};
|
||||
|
||||
struct B {
|
||||
void b(A *a) { }
|
||||
};
|
||||
|
||||
struct BB {
|
||||
void bb(A *a) { }
|
||||
};
|
||||
|
||||
struct C {
|
||||
void c(B *b) { }
|
||||
};
|
||||
|
||||
struct D {
|
||||
void d(C *c) { }
|
||||
void dd(BB *bb) { }
|
||||
};
|
||||
|
||||
struct E {
|
||||
void e(D *d) { }
|
||||
};
|
||||
|
||||
struct F {
|
||||
};
|
||||
} // namespace dependants
|
||||
|
||||
namespace dependencies {
|
||||
|
||||
struct G {
|
||||
};
|
||||
|
||||
struct GG {
|
||||
};
|
||||
|
||||
struct H {
|
||||
void h(G *g) { }
|
||||
void hh(GG *gg) { }
|
||||
};
|
||||
|
||||
struct HH {
|
||||
void hh(G *g) { }
|
||||
};
|
||||
|
||||
struct I {
|
||||
void i(H *h) { }
|
||||
};
|
||||
|
||||
struct J {
|
||||
void i(I *i) { }
|
||||
};
|
||||
|
||||
} // namespace dependencies
|
||||
} // namespace clanguml::t00043
|
||||
|
||||
```
|
||||
## Generated UML diagrams
|
||||

|
||||
Reference in New Issue
Block a user