Updated test cases documentation

This commit is contained in:
Bartek Kryza
2024-01-25 10:46:41 +01:00
parent 757b4d0947
commit ddb604a218
220 changed files with 5218 additions and 5041 deletions

View File

@@ -12,7 +12,9 @@ diagrams:
using_namespace: clanguml::t20039
type_aliases:
"std::vector<int>": int_vec_t
"std::vector<std::string>": string_vec_t
"std::map<int,int>": int_map_t
"std::map<std::string,std::string>": string_map_t
from:
- function: "clanguml::t20039::tmain()"
```
@@ -33,13 +35,17 @@ template <typename T> struct A {
struct R {
A<int> a_int;
A<std::vector<int>> a_intvec;
A<std::vector<std::string>> a_stringvec;
A<std::map<int, int>> a_intmap;
A<std::map<std::string, std::string>> a_stringmap;
void run()
{
a_int.a({});
a_intvec.a({});
a_stringvec.a({});
a_intmap.a({});
a_stringmap.a({});
}
};
@@ -72,7 +78,7 @@ int tmain()
"source_location": {
"column": 5,
"file": "t20039.cc",
"line": 25,
"line": 29,
"translation_unit": "t20039.cc"
},
"type": "function"
@@ -87,7 +93,7 @@ int tmain()
"source_location": {
"column": 10,
"file": "t20039.cc",
"line": 17,
"line": 19,
"translation_unit": "t20039.cc"
},
"type": "method"
@@ -161,6 +167,34 @@ int tmain()
},
"type": "class"
},
{
"activities": [
{
"display_name": "a(string_vec_t)",
"id": "877375915521239216",
"name": "a",
"namespace": "",
"source_location": {
"column": 33,
"file": "t20039.cc",
"line": 9,
"translation_unit": "t20039.cc"
},
"type": "method"
}
],
"display_name": "A<string_vec_t>",
"id": "985421674263139595",
"name": "A",
"namespace": "clanguml::t20039",
"source_location": {
"column": 30,
"file": "t20039.cc",
"line": 8,
"translation_unit": "t20039.cc"
},
"type": "class"
},
{
"activities": [
{
@@ -188,6 +222,34 @@ int tmain()
"translation_unit": "t20039.cc"
},
"type": "class"
},
{
"activities": [
{
"display_name": "a(string_map_t)",
"id": "1228686762653429102",
"name": "a",
"namespace": "",
"source_location": {
"column": 33,
"file": "t20039.cc",
"line": 9,
"translation_unit": "t20039.cc"
},
"type": "method"
}
],
"display_name": "A<string_map_t>",
"id": "1410668113085504962",
"name": "A",
"namespace": "clanguml::t20039",
"source_location": {
"column": 30,
"file": "t20039.cc",
"line": 8,
"translation_unit": "t20039.cc"
},
"type": "class"
}
],
"sequences": [
@@ -204,7 +266,7 @@ int tmain()
"source_location": {
"column": 5,
"file": "t20039.cc",
"line": 29,
"line": 33,
"translation_unit": "t20039.cc"
},
"to": {
@@ -224,7 +286,7 @@ int tmain()
"source_location": {
"column": 9,
"file": "t20039.cc",
"line": 19,
"line": 21,
"translation_unit": "t20039.cc"
},
"to": {
@@ -244,7 +306,7 @@ int tmain()
"source_location": {
"column": 9,
"file": "t20039.cc",
"line": 20,
"line": 22,
"translation_unit": "t20039.cc"
},
"to": {
@@ -253,6 +315,26 @@ int tmain()
},
"type": "message"
},
{
"from": {
"activity_id": "743095879760855186",
"participant_id": "911510236910860394"
},
"name": "a(string_vec_t)",
"return_type": "std::vector<std::vector<vector<basic_string<char,char_traits<char>,allocator<char>>,allocator<basic_string<char,char_traits<char>,allocator<char>>>>>>",
"scope": "normal",
"source_location": {
"column": 9,
"file": "t20039.cc",
"line": 23,
"translation_unit": "t20039.cc"
},
"to": {
"activity_id": "877375915521239216",
"participant_id": "985421674263139595"
},
"type": "message"
},
{
"from": {
"activity_id": "743095879760855186",
@@ -264,7 +346,7 @@ int tmain()
"source_location": {
"column": 9,
"file": "t20039.cc",
"line": 21,
"line": 24,
"translation_unit": "t20039.cc"
},
"to": {
@@ -272,6 +354,26 @@ int tmain()
"participant_id": "1577435969137543418"
},
"type": "message"
},
{
"from": {
"activity_id": "743095879760855186",
"participant_id": "911510236910860394"
},
"name": "a(string_map_t)",
"return_type": "std::vector<std::vector<map<basic_string<char,char_traits<char>,allocator<char>>,basic_string<char,char_traits<char>,allocator<char>>,less<basic_string<char,char_traits<char>,allocator<char>>>,allocator<pair<const basic_string<char,char_traits<char>,allocator<char>>,basic_string<char,char_traits<char>,allocator<char>>>>>>>",
"scope": "normal",
"source_location": {
"column": 9,
"file": "t20039.cc",
"line": 25,
"translation_unit": "t20039.cc"
},
"to": {
"activity_id": "1228686762653429102",
"participant_id": "1410668113085504962"
},
"type": "message"
}
],
"start_from": {