Updated test cases documentation

This commit is contained in:
Bartek Kryza
2023-03-25 18:18:31 +01:00
parent 344549ac03
commit 3a772a9102
201 changed files with 31256 additions and 2757 deletions

View File

@@ -65,3 +65,218 @@ void tmain()
```
## Generated UML diagrams
![t20008_sequence](./t20008_sequence.svg "Constexpr if sequence diagram test case")
## Generated JSON models
```json
{
"diagram_type": "sequence",
"name": "t20008_sequence",
"participants": [
{
"id": "1180776240543224244",
"name": "clanguml::t20008::tmain()",
"source_location": {
"file": "../../tests/t20008/t20008.cc",
"line": 30
},
"type": "function"
},
{
"id": "1906510289157013670",
"name": "clanguml::t20008::B<int>",
"source_location": {
"file": "../../tests/t20008/t20008.cc",
"line": 13
},
"type": "class"
},
{
"id": "1376149084762923197",
"name": "clanguml::t20008::A<int>",
"source_location": {
"file": "../../tests/t20008/t20008.cc",
"line": 7
},
"type": "class"
},
{
"id": "867098551202196741",
"name": "clanguml::t20008::B<const char *>",
"source_location": {
"file": "../../tests/t20008/t20008.cc",
"line": 13
},
"type": "class"
},
{
"id": "144833378017373200",
"name": "clanguml::t20008::A<const char *>",
"source_location": {
"file": "../../tests/t20008/t20008.cc",
"line": 7
},
"type": "class"
},
{
"id": "927702553742507923",
"name": "clanguml::t20008::B<std::string>",
"source_location": {
"file": "../../tests/t20008/t20008.cc",
"line": 13
},
"type": "class"
},
{
"id": "390605614583363778",
"name": "clanguml::t20008::A<std::string>",
"source_location": {
"file": "../../tests/t20008/t20008.cc",
"line": 7
},
"type": "class"
}
],
"sequences": [
{
"messages": [
{
"from": {
"activity_id": "1180776240543224244",
"activity_name": "clanguml::t20008::tmain()",
"participant_id": "1180776240543224244",
"participant_name": "clanguml::t20008::tmain()"
},
"name": "b(int)",
"return_type": "void",
"scope": "normal",
"source_location": {
"file": "../../tests/t20008/t20008.cc",
"line": 38
},
"to": {
"activity_id": "379850145437051189",
"activity_name": "clanguml::t20008::B<int>::b(int)",
"participant_id": "1906510289157013670",
"participant_name": "clanguml::t20008::B<int>"
},
"type": "message"
},
{
"from": {
"activity_id": "379850145437051189",
"activity_name": "clanguml::t20008::B<int>::b(int)",
"participant_id": "1906510289157013670",
"participant_name": "clanguml::t20008::B<int>"
},
"name": "a1(int)",
"return_type": "void",
"scope": "normal",
"source_location": {
"file": "../../tests/t20008/t20008.cc",
"line": 19
},
"to": {
"activity_id": "2066363630174644719",
"activity_name": "clanguml::t20008::A<int>::a1(int)",
"participant_id": "1376149084762923197",
"participant_name": "clanguml::t20008::A<int>"
},
"type": "message"
},
{
"from": {
"activity_id": "1180776240543224244",
"activity_name": "clanguml::t20008::tmain()",
"participant_id": "1180776240543224244",
"participant_name": "clanguml::t20008::tmain()"
},
"name": "b(const char *)",
"return_type": "void",
"scope": "normal",
"source_location": {
"file": "../../tests/t20008/t20008.cc",
"line": 39
},
"to": {
"activity_id": "1347162523481637780",
"activity_name": "clanguml::t20008::B<const char *>::b(const char *)",
"participant_id": "867098551202196741",
"participant_name": "clanguml::t20008::B<const char *>"
},
"type": "message"
},
{
"from": {
"activity_id": "1347162523481637780",
"activity_name": "clanguml::t20008::B<const char *>::b(const char *)",
"participant_id": "867098551202196741",
"participant_name": "clanguml::t20008::B<const char *>"
},
"name": "a2(const char *)",
"return_type": "void",
"scope": "normal",
"source_location": {
"file": "../../tests/t20008/t20008.cc",
"line": 22
},
"to": {
"activity_id": "718650834962275580",
"activity_name": "clanguml::t20008::A<const char *>::a2(const char *)",
"participant_id": "144833378017373200",
"participant_name": "clanguml::t20008::A<const char *>"
},
"type": "message"
},
{
"from": {
"activity_id": "1180776240543224244",
"activity_name": "clanguml::t20008::tmain()",
"participant_id": "1180776240543224244",
"participant_name": "clanguml::t20008::tmain()"
},
"name": "b(std::string)",
"return_type": "void",
"scope": "normal",
"source_location": {
"file": "../../tests/t20008/t20008.cc",
"line": 40
},
"to": {
"activity_id": "1286410946666951254",
"activity_name": "clanguml::t20008::B<std::string>::b(std::string)",
"participant_id": "927702553742507923",
"participant_name": "clanguml::t20008::B<std::string>"
},
"type": "message"
},
{
"from": {
"activity_id": "1286410946666951254",
"activity_name": "clanguml::t20008::B<std::string>::b(std::string)",
"participant_id": "927702553742507923",
"participant_name": "clanguml::t20008::B<std::string>"
},
"name": "a3(std::string)",
"return_type": "void",
"scope": "normal",
"source_location": {
"file": "../../tests/t20008/t20008.cc",
"line": 25
},
"to": {
"activity_id": "1404594247101138737",
"activity_name": "clanguml::t20008::A<std::string>::a3(std::string)",
"participant_id": "390605614583363778",
"participant_name": "clanguml::t20008::A<std::string>"
},
"type": "message"
}
],
"start_from": {
"id": 1180776240543224244,
"location": "clanguml::t20008::tmain()"
}
}
],
"using_namespace": "clanguml::t20008"
}
```