Updated test cases documentation

This commit is contained in:
Bartek Kryza
2023-10-21 17:27:11 +02:00
parent 03ac2121bc
commit 097beb830f
315 changed files with 6583 additions and 5203 deletions

View File

@@ -3,9 +3,12 @@
```yaml
compilation_database_dir: ..
output_directory: diagrams
add_compile_flags:
- -fparse-all-comments
diagrams:
t20001_sequence:
type: sequence
title: Basic sequence diagram example
glob:
- ../../tests/t20001/t20001.cc
include:
@@ -98,8 +101,10 @@ int tmain()
A a;
B b(a);
// \uml{note Just add 2 numbers}
auto tmp = a.add(1, 2);
// \uml{note[] And now add another 2}
return b.wrap_add3(tmp, 2, 3);
}
}
@@ -115,7 +120,7 @@ int tmain()
{
"diagram_type": "sequence",
"metadata": {
"clang_uml_version": "0.4.0-2-g4ab0d29",
"clang_uml_version": "0.4.0-28-g03ac212",
"llvm_version": "Ubuntu clang version 16.0.6 (++20230710042027+7cbf1a259152-1~exp1~20230710162048.105)",
"schema_version": 1
},
@@ -205,6 +210,7 @@ int tmain()
"type": "message"
},
{
"comment": "\\uml{note Just add 2 numbers}",
"from": {
"activity_id": "622672604730036140",
"activity_name": "clanguml::t20001::tmain()",
@@ -217,7 +223,7 @@ int tmain()
"source_location": {
"column": 16,
"file": "../../tests/t20001/t20001.cc",
"line": 66,
"line": 67,
"translation_unit": "../../tests/t20001/t20001.cc"
},
"to": {
@@ -228,6 +234,7 @@ int tmain()
"type": "message"
},
{
"comment": "\\uml{note[] And now add another 2}",
"from": {
"activity_id": "622672604730036140",
"activity_name": "clanguml::t20001::tmain()",
@@ -240,7 +247,7 @@ int tmain()
"source_location": {
"column": 12,
"file": "../../tests/t20001/t20001.cc",
"line": 68,
"line": 70,
"translation_unit": "../../tests/t20001/t20001.cc"
},
"to": {
@@ -345,6 +352,7 @@ int tmain()
}
}
],
"title": "Basic sequence diagram example",
"using_namespace": "clanguml::t20001"
}
```