Updated test cases documentation

This commit is contained in:
Bartek Kryza
2023-06-02 22:02:08 +02:00
parent 75d1daac31
commit a78839eecf
218 changed files with 8587 additions and 5592 deletions

View File

@@ -24,6 +24,7 @@ File t20012.cc
#include <memory>
#include <optional>
#include <utility>
#include <vector>
namespace clanguml {
namespace t20012 {
@@ -123,6 +124,7 @@ void tmain()
}
}
}
```
## Generated UML diagrams
![t20012_sequence](./t20012_sequence.svg "Lambda expression call sequence diagram test case")
@@ -131,7 +133,7 @@ void tmain()
{
"diagram_type": "sequence",
"metadata": {
"clang_uml_version": "0.3.5-27-g81c7ce7",
"clang_uml_version": "0.3.6-11-g75d1daa",
"llvm_version": "Ubuntu clang version 15.0.6",
"schema_version": 1
},
@@ -142,16 +144,16 @@ void tmain()
"name": "clanguml::t20012::tmain()",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 58
"line": 59
},
"type": "function"
},
{
"id": "871571755123349249",
"name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:66:20)",
"id": "1160054139240670033",
"name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:67:20)",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 66
"line": 67
},
"type": "class"
},
@@ -160,7 +162,7 @@ void tmain()
"name": "clanguml::t20012::A",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 9
"line": 10
},
"type": "class"
},
@@ -169,16 +171,16 @@ void tmain()
"name": "clanguml::t20012::B",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 17
"line": 18
},
"type": "class"
},
{
"id": "516948909715002916",
"name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:79:20)",
"id": "409124263156368546",
"name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:80:20)",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 79
"line": 80
},
"type": "class"
},
@@ -187,25 +189,25 @@ void tmain()
"name": "clanguml::t20012::C",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 27
"line": 28
},
"type": "class"
},
{
"id": "1639905845562724067",
"name": "clanguml::t20012::R<R::(lambda ../../tests/t20012/t20012.cc:85:9)>",
"id": "1848989986288721876",
"name": "clanguml::t20012::R<R::(lambda ../../tests/t20012/t20012.cc:86:9)>",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 47
"line": 48
},
"type": "class"
},
{
"id": "105322683015690128",
"name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:85:9)",
"id": "235908030444274749",
"name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:86:9)",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 85
"line": 86
},
"type": "class"
},
@@ -214,7 +216,7 @@ void tmain()
"name": "clanguml::t20012::D",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 35
"line": 36
},
"type": "class"
}
@@ -234,27 +236,27 @@ void tmain()
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 72
"line": 73
},
"to": {
"activity_id": "601151241333493101",
"activity_name": "clanguml::t20012::tmain()##(lambda ../../tests/t20012/t20012.cc:66:20)::operator()()",
"participant_id": "871571755123349249"
"activity_id": "2097044932440760306",
"activity_name": "clanguml::t20012::tmain()##(lambda ../../tests/t20012/t20012.cc:67:20)::operator()()",
"participant_id": "1160054139240670033"
},
"type": "message"
},
{
"from": {
"activity_id": "601151241333493101",
"activity_name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:66:20)::operator()()",
"participant_id": "871571755123349249"
"activity_id": "2097044932440760306",
"activity_name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:67:20)::operator()()",
"participant_id": "1160054139240670033"
},
"name": "a()",
"return_type": "void",
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 67
"line": 68
},
"to": {
"activity_id": "1871432932744498976",
@@ -274,7 +276,7 @@ void tmain()
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 10
"line": 11
},
"to": {
"activity_id": "1100933039353876539",
@@ -294,7 +296,7 @@ void tmain()
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 12
"line": 13
},
"to": {
"activity_id": "941636185823691898",
@@ -305,16 +307,16 @@ void tmain()
},
{
"from": {
"activity_id": "601151241333493101",
"activity_name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:66:20)::operator()()",
"participant_id": "871571755123349249"
"activity_id": "2097044932440760306",
"activity_name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:67:20)::operator()()",
"participant_id": "1160054139240670033"
},
"name": "b()",
"return_type": "void",
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 68
"line": 69
},
"to": {
"activity_id": "2142697410385270633",
@@ -334,7 +336,7 @@ void tmain()
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 18
"line": 19
},
"to": {
"activity_id": "973718340784931313",
@@ -354,7 +356,7 @@ void tmain()
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 20
"line": 21
},
"to": {
"activity_id": "195788529004378403",
@@ -375,27 +377,27 @@ void tmain()
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 83
"line": 84
},
"to": {
"activity_id": "435249756897748529",
"activity_name": "clanguml::t20012::tmain()##(lambda ../../tests/t20012/t20012.cc:79:20)::operator()()",
"participant_id": "516948909715002916"
"activity_id": "3346531080036149",
"activity_name": "clanguml::t20012::tmain()##(lambda ../../tests/t20012/t20012.cc:80:20)::operator()()",
"participant_id": "409124263156368546"
},
"type": "message"
},
{
"from": {
"activity_id": "435249756897748529",
"activity_name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:79:20)::operator()()",
"participant_id": "516948909715002916"
"activity_id": "3346531080036149",
"activity_name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:80:20)::operator()()",
"participant_id": "409124263156368546"
},
"name": "c()",
"return_type": "void",
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 80
"line": 81
},
"to": {
"activity_id": "675369415318225607",
@@ -415,7 +417,7 @@ void tmain()
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 28
"line": 29
},
"to": {
"activity_id": "1451821704315336057",
@@ -435,7 +437,7 @@ void tmain()
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 30
"line": 31
},
"to": {
"activity_id": "1956141408799600460",
@@ -446,21 +448,21 @@ void tmain()
},
{
"from": {
"activity_id": "435249756897748529",
"activity_name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:79:20)::operator()()",
"participant_id": "516948909715002916"
"activity_id": "3346531080036149",
"activity_name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:80:20)::operator()()",
"participant_id": "409124263156368546"
},
"name": "operator()()",
"return_type": "",
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 81
"line": 82
},
"to": {
"activity_id": "601151241333493101",
"activity_name": "clanguml::t20012::tmain()##(lambda ../../tests/t20012/t20012.cc:66:20)::operator()()",
"participant_id": "871571755123349249"
"activity_id": "2097044932440760306",
"activity_name": "clanguml::t20012::tmain()##(lambda ../../tests/t20012/t20012.cc:67:20)::operator()()",
"participant_id": "1160054139240670033"
},
"type": "message"
},
@@ -476,47 +478,47 @@ void tmain()
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 87
"line": 88
},
"to": {
"activity_id": "1003931867044486762",
"activity_name": "clanguml::t20012::R<R##(lambda ../../tests/t20012/t20012.cc:85:9)>::r()",
"participant_id": "1639905845562724067"
"activity_id": "983377906480895496",
"activity_name": "clanguml::t20012::R<R##(lambda ../../tests/t20012/t20012.cc:86:9)>::r()",
"participant_id": "1848989986288721876"
},
"type": "message"
},
{
"from": {
"activity_id": "1003931867044486762",
"activity_name": "clanguml::t20012::R<R::(lambda ../../tests/t20012/t20012.cc:85:9)>::r()",
"participant_id": "1639905845562724067"
"activity_id": "983377906480895496",
"activity_name": "clanguml::t20012::R<R::(lambda ../../tests/t20012/t20012.cc:86:9)>::r()",
"participant_id": "1848989986288721876"
},
"name": "operator()()",
"return_type": "",
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 53
"line": 54
},
"to": {
"activity_id": "31472345599504206",
"activity_name": "clanguml::t20012::tmain()##(lambda ../../tests/t20012/t20012.cc:85:9)::operator()()",
"participant_id": "105322683015690128"
"activity_id": "2085809056446194400",
"activity_name": "clanguml::t20012::tmain()##(lambda ../../tests/t20012/t20012.cc:86:9)::operator()()",
"participant_id": "235908030444274749"
},
"type": "message"
},
{
"from": {
"activity_id": "31472345599504206",
"activity_name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:85:9)::operator()()",
"participant_id": "105322683015690128"
"activity_id": "2085809056446194400",
"activity_name": "clanguml::t20012::tmain()::(lambda ../../tests/t20012/t20012.cc:86:9)::operator()()",
"participant_id": "235908030444274749"
},
"name": "c()",
"return_type": "void",
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 85
"line": 86
},
"to": {
"activity_id": "675369415318225607",
@@ -537,7 +539,7 @@ void tmain()
"scope": "normal",
"source_location": {
"file": "../../tests/t20012/t20012.cc",
"line": 93
"line": 94
},
"to": {
"activity_id": "1355013132527568474",